libcoro
1.0
Coroutine support library for C++20
|
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_coro & | operator= (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... | |
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.