Future specialization for coroutines that return void. More...
#include <corochain.hpp>
Public Member Functions | |
| void | await_resume () |
| template<typename Func > | |
| auto | Accept (Func func) -> TFuture< void > |
| Registers a continuation to be executed after the coroutine completes. | |
Public Member Functions inherited from NNet::TFutureBase< void > | |
| TFutureBase (TPromise< void > &promise) | |
| TFutureBase (TFutureBase &&other) | |
| TFutureBase (const TFutureBase &)=delete | |
| TFutureBase & | operator= (const TFutureBase &)=delete |
| TFutureBase & | operator= (TFutureBase &&other) |
| bool | await_ready () const |
| bool | done () const |
| std::coroutine_handle | raw () |
| void | await_suspend (std::coroutine_handle<> caller) |
Additional Inherited Members | |
Public Types inherited from NNet::TFutureBase< void > | |
| using | promise_type = TPromise< void > |
Protected Attributes inherited from NNet::TFutureBase< void > | |
| std::coroutine_handle< TPromise< void > > | Coro |
Future specialization for coroutines that return void.
|
inline |
Registers a continuation to be executed after the coroutine completes.
| Func | The type of the continuation function. |
| func | The function to execute after completion. |