Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abort_source: modify subscribe method
Currently when subscribe method is called on an abort_source on which abort has already been requested, method's arguments are ignored and std::nullopt is returned. So, behaviour of the method depends on timing and aforementioned case needs to be handled by a caller. If subscribe is called on already aborted abort source, trigger a function passed as an argument.
- Loading branch information