1 #ifndef FWCore_Concurrency_syncWait_h
2 #define FWCore_Concurrency_syncWait_h
11 #include "tbb/task_group.h"
17 [[nodiscard]] std::exception_ptr
syncWait(
F&& iFunc) {
18 std::exception_ptr exceptPtr{};
22 tbb::task_group
group;
24 tbb::task::suspend([&](tbb::task::suspend_point
tag) {
29 tbb::task::resume(
tag);