![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
A co_routine - representing a potentially asynchronous operation/function. More...
#include <CoRoutine.hpp>
Public Types | |
using | return_type = return_type_new |
The return type of this co_routine. | |
Public Member Functions | |
void | cancel () |
Cancels the currently executing co_routine and returns the current result. | |
void | cancelAndWait () |
Cancels the currently running co_routine, while blocking to wait for it to complete. | |
void | get () |
Gets the resulting value of the co_routine. | |
co_routine_status | getStatus () |
Collects the status of the co_routine. More... | |
|
inline |
Definition at line 369 of file CoRoutine.hpp.