-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Make Selector reusable #39
Comments
Yes, in theory. A few changes need to be made to support that use-case, however. I'll add that to my to-do list for the next few days. |
Hi @zesterer! I'm willing to try and work this out. I've checked things here and have a decent idea of how to implement it, but maybe you could give me some directions on what you think should be changed. I also came up with a sketch of an But maybe this could be done by having the |
Hi, I can definitely see this working out! Did you have more details about what sort of implementation & API you'd likely be looking to go for? |
A common pattern is to use
Selector
in an infinite loop.Now a user need to reconstruct a new
Selector
in each iteration becausewait
consumes it.This can have performance impact in high load cases.
Is it possible to make
wait
borrowingself
?The text was updated successfully, but these errors were encountered: