std::coroutine_handle
From cppreference.com
Defined in header <coroutine>
|
||
template< class Promise > struct coroutine_handle; |
(1) | (since C++20) |
template<> struct coroutine_handle<void>; |
(2) | (since C++20) |
The class template coroutine_handle
can be used to refer to a suspended or executing coroutine.
The behavior of a program that declares an explicit or partial specialization of coroutine_handle
is undefined.
Contents |
Member functions
constructs a coroutine_handle object (public member function) | |
assigns the coroutine_handle object (public member function) | |
Observers | |
checks if the coroutine has completed (public member function) | |
checks if the handle represents a coroutine (public member function) | |
(C++20) |
compares two coroutine_handle objects (function) |
Control | |
resumes execution of the coroutine (public member function) | |
destroys a coroutine (public member function) | |
Promise Access | |
access the promise of a coroutine (public member function) | |
Export/Import | |
exports the underlying address, i.e. the pointer backing the coroutine (public member function) | |
[static] |
imports a coroutine from a pointer (public static member function) |
Hash Support | |
specializes std::hash (class template specialization) |