DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::CoRoutine< RTy > Class Template Reference

A CoRoutine - representing a potentially asynchronous operation/function. More...

#include <CoRoutine.hpp>

Public Member Functions

RTy cancel ()
 Cancels the currently executing CoRoutine and returns the current result.
 
RTy get ()
 Gets the resulting value of the CoRoutine.
 
CoRoutineStatus getStatus ()
 Collects the status of the CoRoutine.
 

Member Function Documentation

◆ cancel()

template<typename RTy >
RTy DiscordCoreAPI::CoRoutine< RTy >::cancel ( )
inline
Returns
RTy The return value of the CoRoutine.

Definition at line 176 of file CoRoutine.hpp.

Here is the call graph for this function:

◆ get()

template<typename RTy >
RTy DiscordCoreAPI::CoRoutine< RTy >::get ( )
inline
Returns
RTy The return value of the CoRoutine.

Definition at line 154 of file CoRoutine.hpp.

Here is the call graph for this function:

◆ getStatus()

template<typename RTy >
CoRoutineStatus DiscordCoreAPI::CoRoutine< RTy >::getStatus ( )
inline
Returns
CoRoutineStatus The status of the CoRoutine.

Definition at line 141 of file CoRoutine.hpp.


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