55 else return std::noop_coroutine();
67 operator bool()
const {
return _h !=
nullptr;}
69 bool done()
const {
return _h.done();}
72 std::coroutine_handle<> _h;
prepared_coro(prepared_coro &&other)
move
std::coroutine_handle symmetric_transfer()
release handle to be used in function await_suspend()
prepared_coro & operator=(prepared_coro &&other)
move assign
prepared_coro(std::coroutine_handle<> h)
construct with handle
prepared_coro()=default
construct uninitialized object
~prepared_coro()
destructor - resumes coroutine if still in prepared state
std::coroutine_handle release()
release handle
void operator()()
object can be used as callable (you can pass it to differen thread)
contains prepared coroutine (prepared to run)
void resume(std::coroutine_handle<> h) noexcept
Record resumption of an coroutine.