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
It would be nice to see some API to stop execution of all coroutines and then resuming them.
may::park_all();/* do something */
may::unpark_all();
park_all and unpark_all could be executed in both non-coroutine and coroutine contexts.
Implementation
It's possible to have static PARK_ALL: AtomicBool and at yeach yield to scheduler context check PARK_ALL. But STW mechanism might also require to store coroutine or context that requested STW to resume this context.
The text was updated successfully, but these errors were encountered:
It would be nice to see some API to stop execution of all coroutines and then resuming them.
park_all
andunpark_all
could be executed in both non-coroutine and coroutine contexts.Implementation
It's possible to have
static PARK_ALL: AtomicBool
and at yeach yield to scheduler context checkPARK_ALL
. But STW mechanism might also require to store coroutine or context that requested STW to resume this context.The text was updated successfully, but these errors were encountered: