|
CatapultServer
v0.5.0.1 (Elephant)
|
Provides a way to access the result of an asynchronous operation. More...


Public Member Functions | |
| future ()=default | |
| Creates a default future. More... | |
| future (const std::shared_ptr< detail::shared_state< T >> &pState) | |
| Constructs a future around a shared state (pState). More... | |
| bool | valid () |
Returns true if this future is valid. More... | |
| bool | is_ready () const |
Returns true if this future has completed and get will not block. More... | |
| T | get () |
| Returns the result of this future and blocks until the result is available. More... | |
| template<typename TContinuation , typename TResultType = std::invoke_result_t<TContinuation, future<T>&&>> | |
| auto | then (TContinuation continuation) |
| Configures continuation to run at the completion of this future. More... | |
Public Member Functions inherited from catapult::utils::MoveOnly | |
| constexpr | MoveOnly ()=default |
| Default constructor. More... | |
| ~MoveOnly ()=default | |
| Default destructor. More... | |
| MoveOnly (const NonCopyable &)=delete | |
| Disabled copy constructor. More... | |
| MoveOnly (MoveOnly &&)=default | |
| Default move constructor. More... | |
| MoveOnly & | operator= (const MoveOnly &)=delete |
| Disabled assignment operator. More... | |
| MoveOnly & | operator= (MoveOnly &&)=default |
| Default move assignment operator. More... | |
Private Attributes | |
| std::shared_ptr< detail::shared_state< T > > | m_pState |
Provides a way to access the result of an asynchronous operation.
|
default |
Creates a default future.
|
inlineexplicit |
Constructs a future around a shared state (pState).
|
inline |
Returns the result of this future and blocks until the result is available.

|
inline |
Returns true if this future has completed and get will not block.
|
inline |
Configures continuation to run at the completion of this future.

|
inline |
Returns true if this future is valid.
|
private |