|
fiber
|
Wraps awaitables that are not yet derived from fiber::AwaitableNode
More...
#include <Coroutine.hpp>
Public Member Functions | |
| constexpr | AwaitableWrapper (Awaitable &awaitable) |
| constexpr bool | await_ready () const noexcept |
| constexpr auto | await_resume () noexcept |
| constexpr CoSignal | await_suspend_signal () const noexcept |
| template<class ReturnType> | |
| constexpr auto | await_suspend (std::coroutine_handle< fiber::CoroutinePromise< ReturnType > > handle) noexcept |
Static Public Member Functions | |
| static bool | s_await_ready (const AwaitableWrapper *This) |
Wraps awaitables that are not yet derived from fiber::AwaitableNode
If wraps arbitrary awaitables that do not derive from fiber::AwaitableNode that implements the registration infrastructure relied on by fiber::Coroutine and fiber::TaskBase.
Specialises for awaitable passed as lvalues.
Intended to be used only by CoroutinePromise::await_transform(awaitable)
| Awaitable | an awaitable that implements .await_ready(), .await_resume() and .await_suspend(handle). |
|
inlineconstexpr |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinestatic |