|  | D++ (DPP)
    C++ Discord API Bot Library | 
Shared state of the async and its callback, to be used across threads. More...
#include <async.h>
 Collaboration diagram for dpp::detail::async::callback< R >:
 Collaboration diagram for dpp::detail::async::callback< R >:| Public Member Functions | |
| template<typename U  = R> requires (std::convertible_to<const U&, R>) | |
| void | operator() (const U &v) const | 
| Call operator, sets the value in the promise and notifies any awaiter.  More... | |
| template<typename U  = R> requires (std::convertible_to<U&&, R>) | |
| void | operator() (U &&v) const | 
| Call operator, sets the value in the promise and notifies any awaiter.  More... | |
| void | operator() () const | 
| 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.