D++ (DPP)  10.0.30
C++ Discord API Bot Library
dpp::detail::async Namespace Reference

Classes

class  async_base
 Base class of dpp::async. More...
 
struct  async_callback_data
 State of the async and its callback. More...
 

Enumerations

enum  state_t {
  state_t::sent,
  state_t::waiting,
  state_t::done,
  state_t::dangling
}
 Represents the step an std::async is at. More...
 

Enumeration Type Documentation

◆ state_t

Represents the step an std::async is at.

Enumerator
sent 

Request was sent but not co_await-ed.

handle is nullptr, result_storage is not constructed.

waiting 

Request was co_await-ed.

handle is valid, result_storage is not constructed.

done 

Request was completed.

handle is unknown, result_storage is valid.

dangling 

Request was never co_await-ed.