BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
#include <future.hpp>
Public Types | |
typedef std::shared_ptr< promise< T > > | ptr |
Public Types inherited from fc::promise_base | |
typedef std::shared_ptr< promise_base > | ptr |
Public Member Functions | |
virtual | ~promise () |
const T & | wait (const microseconds &timeout=microseconds::maximum()) |
const T & | wait_until (const time_point &tp) |
void | set_value (const T &v) |
void | set_value (T &&v) |
template<typename CompletionHandler > | |
void | on_complete (CompletionHandler &&c) |
Public Member Functions inherited from fc::promise_base | |
virtual | ~promise_base () |
const char * | get_desc () const |
virtual void | cancel (const char *reason FC_CANCELATION_REASON_DEFAULT_ARG) |
bool | canceled () const |
bool | ready () const |
bool | error () const |
void | set_exception (const fc::exception_ptr &e) |
Static Public Member Functions | |
static ptr | create (const char *desc FC_TASK_NAME_DEFAULT_ARG) |
static ptr | create (const T &val) |
static ptr | create (T &&val) |
Protected Member Functions | |
promise (const char *desc) | |
promise (const T &val) | |
promise (T &&val) | |
Protected Member Functions inherited from fc::promise_base | |
promise_base (const char *desc FC_TASK_NAME_DEFAULT_ARG) | |
void | _wait (const microseconds &timeout_us) |
void | _wait_until (const time_point &timeout_us) |
void | _notify () |
void | _set_value (const void *v) |
void | _on_complete (detail::completion_handler *c) |
Protected Attributes | |
optional< T > | result |
Protected Attributes inherited from fc::promise_base | |
const char * | _cancellation_reason |
Definition at line 109 of file future.hpp.
typedef std::shared_ptr< promise<T> > fc::promise< T >::ptr |
Definition at line 111 of file future.hpp.
|
inlinevirtual |
Definition at line 112 of file future.hpp.
|
inlineprotected |
Definition at line 151 of file future.hpp.
|
inlineprotected |
Definition at line 152 of file future.hpp.
|
inlineprotected |
Definition at line 153 of file future.hpp.
|
inlinestatic |
Definition at line 114 of file future.hpp.
|
inlinestatic |
Definition at line 118 of file future.hpp.
|
inlinestatic |
Definition at line 122 of file future.hpp.
|
inline |
Definition at line 147 of file future.hpp.
|
inline |
Definition at line 136 of file future.hpp.
|
inline |
Definition at line 141 of file future.hpp.
|
inline |
Definition at line 127 of file future.hpp.
|
inline |
Definition at line 131 of file future.hpp.
|
protected |
Definition at line 155 of file future.hpp.