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

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

#include <corochain.hpp>

Inheritance diagram for NNet::TPromise< void >:
NNet::TPromiseBase< void > NNet::TPromiseBase< void >

Public Member Functions

TFuture< void > get_return_object ()
 
void return_void ()
 
void unhandled_exception ()
 
TFuture< void > get_return_object ()
 
void return_value (const void &t)
 
void return_value (void &&t)
 
void unhandled_exception ()
 
- Public Member Functions inherited from NNet::TPromiseBase< void >
std::suspend_never initial_suspend ()
 
TFinalAwaiter< void > final_suspend () noexcept
 

Public Attributes

std::optional< std::exception_ptr > ErrorOr
 
std::optional< std::variant< void, std::exception_ptr > > ErrorOr
 Optional container that holds either the result or an exception.
 
- Public Attributes inherited from NNet::TPromiseBase< void >
std::coroutine_handle Caller
 Handle to the caller coroutine (initialized to a no-operation coroutine).
 

Detailed Description

Promise specialization for coroutines that return void.


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