Nugget
|
The awaiter type. More...
#include <psyqo/coroutine.hh>
Public Member Functions | |
Awaiter (Awaiter &&other)=default | |
Awaiter & | operator= (Awaiter &&other)=default |
Awaiter (Awaiter const &)=default | |
Awaiter & | operator= (Awaiter const &)=default |
constexpr bool | await_ready () const noexcept |
constexpr void | await_suspend (std::coroutine_handle<> h) |
constexpr void | await_resume () const noexcept |
Friends | |
struct | Coroutine |
The awaiter type.
The awaiter type is the type that is used to suspend the coroutine after scheduling an asychronous operation. The keyword co_await
can be used on an instance of the object to suspend the current coroutine. Creating an instance of this object is done by calling coroutine.awaiter()
.
|
default |
|
default |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
|
default |
|
default |