COROIO: NNet::TFutureBase< T > Struct Template Reference
COROIO
 
Loading...
Searching...
No Matches
NNet::TFutureBase< T > Struct Template Reference

Base future type for coroutines. More...

#include <corochain.hpp>

Inheritance diagram for NNet::TFutureBase< T >:
NNet::TFuture< T >

Public Types

using promise_type = TPromise<T>
 

Public Member Functions

 TFutureBase (TPromise< T > &promise)
 
 TFutureBase (TFutureBase &&other)
 
 TFutureBase (const TFutureBase &)=delete
 
TFutureBaseoperator= (const TFutureBase &)=delete
 
TFutureBaseoperator= (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
 

Detailed Description

template<typename T>
struct NNet::TFutureBase< T >

Base future type for coroutines.

Manages the coroutine handle and provides basic mechanisms to await the coroutine's completion.

Template Parameters
TThe type of the result produced by the coroutine.

The documentation for this struct was generated from the following file: