ttg::resumable_task_events< N > Struct Template Reference
Documentation
template<std::size_t N>
struct ttg::resumable_task_events< N >
statically-sized sequence of events on whose completion progress of a given task depends on
- Note
- this is the
Awaiter
for resumable_task coroutine (the concept is not defined in the standard, see https://lewissbaker.github.io/2017/11/17/understanding-operator-co-await instead )
Definition at line 168 of file coroutine.h.
Public Member Functions | |
template<typename... Events> | |
constexpr | resumable_task_events (Events &&... events) |
members mandated by the Awaiter concept | |
constexpr bool | await_ready () const |
void | await_suspend (coroutine_handle< resumable_task_state > pending_task) |
void | await_resume () |
Constructor & Destructor Documentation
◆ resumable_task_events()
template<std::size_t N>
template<typename... Events>
|
inlineconstexpr |
Definition at line 177 of file coroutine.h.
Member Function Documentation
◆ await_ready()
template<std::size_t N>
|
inlineconstexpr |
Definition at line 182 of file coroutine.h.
◆ await_resume()
template<std::size_t N>
|
inline |
Definition at line 189 of file coroutine.h.
◆ await_suspend()
template<std::size_t N>
|
inline |
Definition at line 184 of file coroutine.h.
The documentation for this struct was generated from the following file:
- ttg/ttg/coroutine.h