Skip to content
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

Does @batch wait until completion? #150

Closed
Socob opened this issue Oct 2, 2024 · 1 comment · Fixed by #151
Closed

Does @batch wait until completion? #150

Socob opened this issue Oct 2, 2024 · 1 comment · Fixed by #151

Comments

@Socob
Copy link
Contributor

Socob commented Oct 2, 2024

I suppose it’s kind of implicit by the analogy to Threads.@threads, but I don’t think it’s documented anywhere that @batch waits until all iterations are complete on all tasks? Would be nice to mention that for completeness, as in Threads.@threads’ docstring:

help?> Threads.@threads
  Threads.@threads [schedule] for ... end


  A macro to execute a for loop in parallel. The iteration space is distributed to coarse-grained tasks. This policy can be specified by the
  schedule argument. The execution of the loop waits for the evaluation of all iterations.
@chriselrod
Copy link
Member

It does wait.
Feel free to make a PR editing the doc string.

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 a pull request may close this issue.

2 participants