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

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...
 

Member Function Documentation

◆ getStatus()

template<jsonifier::concepts::void_t return_type_new, bool timeOut>
co_routine_status discord_core_api::co_routine< return_type_new, timeOut >::getStatus ( )
inline
Returns
co_routine_status the status of the co_routine.

Definition at line 369 of file CoRoutine.hpp.


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