You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using for_each to execute some tasks and I noticed that if an exception is thrown, the future waits forever. The code is like
tf::Taskflow tf;
tf.for_each(indices.begin(), indices.end(), [&](const auto& index) {
if(index == 0) throw std::runtime_error("FOO"); // I know 0 is in indices
}
auto f = tf::Executor().run(taskflow);
f.wait(); // never get out of here
I am working with version 3.7.0 and compiling on clang 17. I have been looking into
Hi,
I am using for_each to execute some tasks and I noticed that if an exception is thrown, the future waits forever. The code is like
I am working with version 3.7.0 and compiling on clang 17. I have been looking into
https://taskflow.github.io/taskflow/ExceptionHandling.html#CatchAnExceptionFromARunningTaskflow
and I can't see what is going on.
The text was updated successfully, but these errors were encountered: