D++ (DPP)  10.0.30
C++ Discord API Bot Library
anonymous_namespace{coro.cpp} Namespace Reference

Classes

struct  job_awaitable
 
struct  simple_awaitable
 
struct  test_exception
 

Functions

void async_awaitable_wait5 (std::function< void(int)> callback)
 
dpp::job async_test ()
 
dpp::coroutine< void > coroutine_offline_test ()
 
dpp::job job_offline_test ()
 
void sync_awaitable_fun (std::function< void(int)> callback)
 
void sync_awaitable_throw (std::function< void(int)> callback)
 
dpp::task< void > task_offline_test ()
 

Variables

std::atomic< int > exceptions_caught = 0
 
std::array< std::atomic< int >, 10 > job_data
 
std::array< std::atomic< int >, 10 > task_data
 

Function Documentation

◆ async_awaitable_wait5()

void anonymous_namespace{coro.cpp}::async_awaitable_wait5 ( std::function< void(int)>  callback)

References dpp::unicode_emoji::thread.

Referenced by task_offline_test().

Here is the caller graph for this function:

◆ async_test()

dpp::job anonymous_namespace{coro.cpp}::async_test ( )

References dpp::unicode_emoji::clock, CORO_ASYNC_OFFLINE, set_status(), sync_awaitable_throw(), and ts_failed.

Referenced by coro_offline_tests().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ coroutine_offline_test()

dpp::coroutine<void> anonymous_namespace{coro.cpp}::coroutine_offline_test ( )

References CORO_COROUTINE_OFFLINE, dpp::unicode_emoji::factory, set_status(), and ts_failed.

Referenced by coro_offline_tests().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ job_offline_test()

dpp::job anonymous_namespace{coro.cpp}::job_offline_test ( )

References CORO_JOB_OFFLINE, job_data, set_status(), and ts_failed.

Referenced by coro_offline_tests().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sync_awaitable_fun()

void anonymous_namespace{coro.cpp}::sync_awaitable_fun ( std::function< void(int)>  callback)

◆ sync_awaitable_throw()

void anonymous_namespace{coro.cpp}::sync_awaitable_throw ( std::function< void(int)>  callback)

Referenced by async_test().

Here is the caller graph for this function:

◆ task_offline_test()

dpp::task<void> anonymous_namespace{coro.cpp}::task_offline_test ( )

References async_awaitable_wait5(), dpp::unicode_emoji::clock, CORO_TASK_OFFLINE, job_data, set_status(), start, and ts_failed.

Referenced by coro_offline_tests().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ exceptions_caught

std::atomic<int> anonymous_namespace{coro.cpp}::exceptions_caught = 0

◆ job_data

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

◆ task_data

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

Referenced by coro_offline_tests().