Corium 1.1.0
High-Performance Zero-Heap C++20 MPSC Application Runtime
Loading...
Searching...
No Matches
corium::async::CancellationToken::WhenCancelledAwaiter Struct Reference

Awaitable that suspends until this token is cancelled. More...

#include <CancellationToken.hpp>

+ Collaboration diagram for corium::async::CancellationToken::WhenCancelledAwaiter:

Public Member Functions

bool await_ready () const noexcept
 
constexpr void await_resume () const noexcept
 
bool await_suspend (std::coroutine_handle<> h) noexcept
 

Public Attributes

CancellationTokentoken
 

Detailed Description

Awaitable that suspends until this token is cancelled.

Member Function Documentation

◆ await_ready()

bool corium::async::CancellationToken::WhenCancelledAwaiter::await_ready ( ) const
inlinenoexcept
Examples
/home/runner/work/corium/corium/include/corium/async/CancellationToken.hpp.
+ Here is the call graph for this function:

◆ await_resume()

constexpr void corium::async::CancellationToken::WhenCancelledAwaiter::await_resume ( ) const
inlineconstexprnoexcept

◆ await_suspend()

bool corium::async::CancellationToken::WhenCancelledAwaiter::await_suspend ( std::coroutine_handle<>  h)
inlinenoexcept
Examples
/home/runner/work/corium/corium/include/corium/async/CancellationToken.hpp.
+ Here is the call graph for this function:

Member Data Documentation

◆ token

CancellationToken& corium::async::CancellationToken::WhenCancelledAwaiter::token

The documentation for this struct was generated from the following file: