-
Notifications
You must be signed in to change notification settings - Fork 37
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
Blocking Read #1
Comments
The solution using |
Like I said it was just to make the API symmetrical or more complete to the end user and could be optimized later on if time wasn't permitting. Anyway glad to see you were able to put in place a more efficient method to start with =) Thanks! |
Yeah, I got that, I'm just hesitant to put out those kinds of things, because then people will start complaining that it's inefficient :p I'm still not entirely happy with the current solution, because it won't do very well in very high-churn situations. I'd like to adopt something like mvdnes/spin-rs#29 to busy-wait and yield a few times before resorting to a thread park (there are |
…odecov-action-3 Bump codecov/codecov-action from 2 to 3
Great library!!!! Simple yet effecient! I am just curious for the sake of completion why not implement the blocking read the same way you demonstrate it in your example?
I know it may not be ideal but atleast it will be feature complete and you can optimize in the future. Plus it will make the example more concise and easier to follow for new users.
Just a suggestion =)
The text was updated successfully, but these errors were encountered: