![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
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. | |
|
inline |
Definition at line 176 of file CoRoutine.hpp.
|
inline |
Definition at line 154 of file CoRoutine.hpp.
|
inline |
Definition at line 141 of file CoRoutine.hpp.