libcoro  1.0
Coroutine support library for C++20
Public Member Functions | List of all members
coro::prepared_coro Class Reference

contains prepared coroutine (prepared to run) More...

#include <prepared_coro.h>

Public Member Functions

 prepared_coro ()=default
 construct uninitialized object More...
 
 prepared_coro (std::coroutine_handle<> h)
 construct with handle More...
 
 prepared_coro (prepared_coro &&other)
 move More...
 
prepared_corooperator= (prepared_coro &&other)
 move assign More...
 
 ~prepared_coro ()
 destructor - resumes coroutine if still in prepared state More...
 
std::coroutine_handle release ()
 release handle More...
 
std::coroutine_handle symmetric_transfer ()
 release handle to be used in function await_suspend() More...
 
void operator() ()
 object can be used as callable (you can pass it to differen thread) More...
 
 operator bool () const
 test whether there is coroutine prepared More...
 

Detailed Description

contains prepared coroutine (prepared to run)

This object allows to schedule coroutine resumption. If this object is destroyed without scheduling, the coroutine is resumed in the destructor. Object is movable

Definition at line 15 of file prepared_coro.h.


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