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

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

#include <CoRoutine.hpp>

Inherits DiscordCoreAPI::CoRoutineBase.

Public Member Functions

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

Member Function Documentation

◆ getStatus()

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

Definition at line 300 of file CoRoutine.hpp.


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