D++ (DPP)  10.0.30
C++ Discord API Bot Library
coro.cpp File Reference
#include <thread>
#include <atomic>
#include <algorithm>
#include "test.h"
Include dependency graph for coro.cpp:

Classes

struct  anonymous_namespace{coro.cpp}::job_awaitable
 
struct  anonymous_namespace{coro.cpp}::simple_awaitable
 
struct  anonymous_namespace{coro.cpp}::test_exception< N >
 

Namespaces

 anonymous_namespace{coro.cpp}
 

Functions

void anonymous_namespace{coro.cpp}::async_awaitable_wait5 (std::function< void(int)> callback)
 
dpp::job anonymous_namespace{coro.cpp}::async_test ()
 
void coro_offline_tests ()
 
void coro_online_tests (dpp::cluster *bot)
 
dpp::coroutine< void > anonymous_namespace{coro.cpp}::coroutine_offline_test ()
 
void event_handler_test (dpp::cluster *bot)
 
dpp::job anonymous_namespace{coro.cpp}::job_offline_test ()
 
void anonymous_namespace{coro.cpp}::sync_awaitable_fun (std::function< void(int)> callback)
 
void anonymous_namespace{coro.cpp}::sync_awaitable_throw (std::function< void(int)> callback)
 
dpp::task< void > anonymous_namespace{coro.cpp}::task_offline_test ()
 

Variables

std::atomic< int > anonymous_namespace{coro.cpp}::exceptions_caught = 0
 
std::array< std::atomic< int >, 10 > anonymous_namespace{coro.cpp}::job_data
 
std::array< std::atomic< int >, 10 > anonymous_namespace{coro.cpp}::task_data
 

Function Documentation

◆ coro_offline_tests()

◆ coro_online_tests()

void coro_online_tests ( dpp::cluster bot)

References CORO_EVENT_HANDLER, event_handler_test(), and start_test().

Here is the call graph for this function:

◆ event_handler_test()