Open ImmutableOctet opened 4 months ago
We should be able to write something like:
co_await stop();
to indicate that the current thread should be terminated. Ideally, this would work for references to other threads as well, e.g.
co_await some_other_thread.stop();
This could also be extended to pause:
pause
if (auto other_thread = get_thread("other_thread"_hs)) { other_thread.pause ( []() { return (some_condition_to_be_met); } ); }
although some member-functions, like until, may not make sense for this. See: #78
until
Related: #81
We should be able to write something like:
to indicate that the current thread should be terminated. Ideally, this would work for references to other threads as well, e.g.
This could also be extended to
pause
:although some member-functions, like
until
, may not make sense for this. See: #78Related: #81