Skip to content

Conversation

nvanlaerebeke
Copy link

For a project I needed to send larger amounts of data and needed the ability to throttle it to a user defined amount.

Added a ThrottledStream class that just wait if the bytes/sec is going over the set limit.
Profiling showed no performance impact, also kept it to 2 simple properties, one to set the maximum bytes/sec and one to get the current bytes/sec.

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