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

◆ promise_type

Definition at line 59 of file coroutine.h.

Constructor & Destructor Documentation

◆ resumable_task()

ttg::resumable_task::resumable_task ( base_type  base)
inline

Definition at line 63 of file coroutine.h.

Member Function Documentation

◆ handle()

base_type ttg::resumable_task::handle ( )
inline

Definition at line 65 of file coroutine.h.


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