Parallel for #550
pfeatherstone
started this conversation in
General
Replies: 1 comment 3 replies
-
It depends a bit on your use case. You can do it this way. Be aware that it cancels all outstanding tasks as soon as the first exception is thrown, because the assumption of this function is that the results of all tasks are needed. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's the best way to implement a
parallel_for()
function using this library. Usestlab::async
, store all the futures in astd::vector
then callstlab::when_all()
? Or is there a better way?Beta Was this translation helpful? Give feedback.
All reactions