Skip to content
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

Flow control example #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Flow control example #5

wants to merge 4 commits into from

Conversation

awygle
Copy link
Contributor

@awygle awygle commented Jul 12, 2022

This example functions basically like emitter, but does Go-Back-N flow control based on the sequenced stream.

@awygle
Copy link
Contributor Author

awygle commented Jul 12, 2022

Forgot to mention in PR description that I also added an "interval" argument to the emitter example, so it doesn't always blast packets at maximum possible speed, you can make it emit every 10s or whatever. The overhead of sleep(0) should be almost zero on Unix (no syscall happens per the Rust docs), so the default of 0 will give you max speed as before.

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.

1 participant