-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
For the past years we had several attempts from both internal and external contributors to add abort-source as a way to wakeup c.v. from sleep.
The main concern against adding it is to avoid a matrix of every primitive interacting with every other primitive. There is a workaround
auto abort_me = as.subscribe([&] { cv.broadcast(); });
...
co_await cv.when([&] { return as.abort_requested() || other_conditions; });
but it's less than nice and optimal.
Apparently, it's needed badly, but the consensus is yet to be come to.
dotnwat
Metadata
Metadata
Assignees
Labels
No labels