-
Notifications
You must be signed in to change notification settings - Fork 506
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
Block until all rayon::spawn
have completed
#650
Comments
We don't currently have a way to wait for idle, but I think we probably should. |
how about using a scope ? |
Indeed, a |
Perhaps you could leverage a WaitGroup? |
Note: we do have |
Until we have a way to parallelize a generic non-Send iterator, I'm using
rayon::spawn
from a single-threaded loop.This works, except that the main thread will not wait for the tasks to complete before exiting.
Is there a way to block until all global tasks have been completed? Or should I maintain my own completion count for that?
The text was updated successfully, but these errors were encountered: