-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Streamlining the WaitGroup
API
#14820
Comments
similar to my promise library too I'm all for this, much harder to shoot yourself in the foot and looks way better |
RFC #3 had a The |
|
I think select
when bail.receive
when wg.wait
end That would allow to make it a basis in a worker-pool implementation, or maybe even have some |
Feature Request
Less of a problem, more of an itch I'd like to scratch.
WaitGroup
is something I've been wanting in Crystal for years, but the API is a bit Golang-like.I've been experimenting with an API that looks like this and it works really nicely so far.
It's got the same feel as Redis pipelines:
I don't have any alternatives at the moment, but it's perfectly understandable if the method names change.
Nope, the idea builds on top of the existing
WaitGroup
API.The text was updated successfully, but these errors were encountered: