Base future type for coroutines. More...
#include <corochain.hpp>
Public Types | |
| using | promise_type = TPromise< T > |
Public Member Functions | |
| TFutureBase (TPromise< T > &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) |
Protected Attributes | |
| std::coroutine_handle< TPromise< T > > | Coro = nullptr |
Base future type for coroutines.
Manages the coroutine handle and provides basic mechanisms to await the coroutine's completion.
| T | The type of the result produced by the coroutine. |