D++ (DPP)
C++ Discord API Bot Library
|
Shared state of the async and its callback, to be used across threads. More...
Public Member Functions | |
template<typename U = R> | |
void | operator() (const U &v) const requires(std |
Call operator, sets the value in the promise and notifies any awaiter. More... | |
template<typename U = R> | |
void | operator() (U &&v) const requires(std |
Call operator, sets the value in the promise and notifies any awaiter. More... | |
void | operator() () const requires(std |
Call operator, sets the value in the promise and notifies any awaiter. More... | |
Public Attributes | |
std::shared_ptr< basic_promise< R > > | promise {nullptr} |
Promise object to set the result into. More... | |
Shared state of the async and its callback, to be used across threads.
|
inline |
Call operator, sets the value in the promise and notifies any awaiter.
|
inline |
Call operator, sets the value in the promise and notifies any awaiter.
v | Callback value |
|
inline |
Call operator, sets the value in the promise and notifies any awaiter.
v | Callback value |
std::shared_ptr<basic_promise<R> > dpp::detail::async::callback< R >::promise {nullptr} |
Promise object to set the result into.