COROIO: NNet::TFuture< void > Struct Reference
COROIO
 
Loading...
Searching...
No Matches
NNet::TFuture< void > Struct Reference

Future specialization for coroutines that return void. More...

#include <corochain.hpp>

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

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
 
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)
 

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
 

Detailed Description

Future specialization for coroutines that return void.

Member Function Documentation

◆ Accept()

template<typename Func >
auto NNet::TFuture< void >::Accept ( Func  func) -> TFuture<void>
inline

Registers a continuation to be executed after the coroutine completes.

Template Parameters
FuncThe type of the continuation function.
Parameters
funcThe function to execute after completion.
Returns
TFuture<void> representing the continuation.

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