ttg::resumable_task Struct Reference
Inheritance diagram for ttg::resumable_task:
Documentation
task that can be resumed after some events occur
Definition at line 53 of file coroutine.h.
Public Types | |
using | base_type = ttg::coroutine_handle< resumable_task_state > |
members mandated by the promise_type concept | |
using | promise_type = struct resumable_task_state |
Public Member Functions | |
resumable_task (base_type base) | |
base_type | handle () |
bool | ready () const |
bool | completed () const |
ttg::span< event * > | events () |
Member Typedef Documentation
◆ base_type
Definition at line 54 of file coroutine.h.
◆ promise_type
using ttg::resumable_task::promise_type = struct resumable_task_state |
Definition at line 59 of file coroutine.h.
Constructor & Destructor Documentation
◆ resumable_task()
|
inline |
Definition at line 63 of file coroutine.h.
Member Function Documentation
◆ handle()
|
inline |
Definition at line 65 of file coroutine.h.
The documentation for this struct was generated from the following file:
- ttg/ttg/coroutine.h