|
Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
|
Lightweight, zero-heap cooperative cancellation token for C++20 coroutines and services. More...
#include <CancellationToken.hpp>
Collaboration diagram for corium::async::CancellationToken:Classes | |
| struct | WhenCancelledAwaiter |
| Awaitable that suspends until this token is cancelled. More... | |
Public Member Functions | |
| void | cancel () noexcept |
| Signal cancellation to all observing tasks. | |
| constexpr | CancellationToken () noexcept=default |
| bool | isCancelled () const noexcept |
| Check if cancellation has been requested. | |
| void | reset () noexcept |
| Reset token state to uncancelled. | |
| WhenCancelledAwaiter | whenCancelled () noexcept |
Lightweight, zero-heap cooperative cancellation token for C++20 coroutines and services.
|
constexprdefaultnoexcept |
|
inlinenoexcept |
Signal cancellation to all observing tasks.
whenCancelled() immediately.
|
inlinenoexcept |
Check if cancellation has been requested.
Here is the caller graph for this function:
|
inlinenoexcept |
Reset token state to uncancelled.
|
inlinenoexcept |