Skip to content

fix: block when below trigger level #644

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cperkulator
Copy link
Contributor

stream buffers appear to only block when the buffer is empty, which doesn't seem to help anybody... This will force the current task to block until the trigger level has been reached

Description

This allows the stream buffer to block when the amount of data in a stream buffer is less than the trigger level.

Test Steps

Reference issue below.

Checklist:

  • I have tested my changes. No regression in existing tests.

  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

  • We have tested the stream buffer works as we expect. We have not ran existing tests to confirm no regressions have been made.

  • We have not added any unit tests.

Related Issue

#643

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

stream buffers appear to only block when the buffer is empty, which doesn't seem to help anybody... This will force the current task to block until the trigger level has been reached
@cperkulator
Copy link
Contributor Author

@RichardBarry Any thoughts on this? Maybe this should be enabled through a config to allow users to specify whether or not they want to block if the trigger level hasn't been reached.

@Mancent Mancent linked an issue Mar 25, 2023 that may be closed by this pull request
Closed
@aggarg
Copy link
Member

aggarg commented Mar 27, 2023

@cperkulator Lets continue the discussion here - #643 (comment)

@aggarg aggarg closed this Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

M
2 participants