2 ms·
C++ coroutines for async functions (returning std::task) seem to have completion semantics (are not randomly interruptible). See eg the APIs in cppcoro. Howeve
by Matthias247 6y ago
C++ coroutines for async functions (returning std::task) seem to have completion semantics (are not randomly interruptible). See eg the APIs in cppcoro.
However that is not a general property of c++ coroutines. The generator style coroutines also seem randomly cancellable