|
bool | IsCancelRequested () noexcept |
| Checks for pending cancellation requests.
|
|
bool | ShouldCancel () noexcept |
|
TaskCancellationReason | CancellationReason () noexcept |
| Returns task cancellation reason for the current task.
|
|
void | CancellationPoint () |
| Throws an exception if a cancellation request for this task is pending.
|
|
void | SetDeadline (Deadline deadline) |
|
TaskCancellationToken | GetCancellationToken () |
| Return cancellation token for current coroutine.
|
|
bool | IsTaskProcessorThread () noexcept |
|
TaskProcessor & | GetTaskProcessor () |
| Returns reference to the task processor executing the caller.
|
|
std::size_t | GetStackSize () |
| Returns task coroutine stack size.
|
|
Namespace with functions to work with current task from within it.