Abstract base template for futures and shared futures. 更多...
#include <Future.h>
类 TFutureBase< InternalResultType > 继承关系图:Public 成员函数 | |
| bool | IsReady () const |
| Checks whether this future object has its value set. 更多... | |
| bool | IsValid () const |
| Checks whether this future object has a valid state. 更多... | |
| void | Wait () const |
| Blocks the calling thread until the future result is available. 更多... | |
| bool | WaitFor (const FTimespan &Duration) const |
| Blocks the calling thread until the future result is available or the specified duration is exceeded. 更多... | |
| bool | WaitUntil (const FDateTime &Time) const |
| Blocks the calling thread until the future result is available or the specified time is hit. 更多... | |
Protected 成员函数 | |
| const StateType & | GetState () const |
| Gets the shared state object. 更多... | |
| template<typename Func > | |
| auto | Next (Func Continuation) |
| Convenience wrapper for Then that set a completion callback that will be called once the future completes or immediately if already completed 更多... | |
| TFutureBase & | operator= (const TFutureBase &)=default |
| Protected copy assignment | |
| TFutureBase & | operator= (TFutureBase &&)=default |
| Protected move assignment | |
| void | Reset () |
| Reset the future. 更多... | |
| TFutureBase () | |
| Default constructor. | |
| TFutureBase (const StateType &InState) | |
| Creates and initializes a new instance. 更多... | |
| TFutureBase (const TFutureBase &)=default | |
| Protected copy construction | |
| TFutureBase (TFutureBase &&)=default | |
| Protected move construction | |
| template<typename Func > | |
| auto | Then (Func Continuation) |
| Set a completion callback that will be called once the future completes or immediately if already completed 更多... | |
| ~TFutureBase () | |
| Protected destructor. | |
Abstract base template for futures and shared futures.
|
inlineprotected |
Creates and initializes a new instance.
| InState | The shared state to initialize with. |
|
inlineprotected |
Gets the shared state object.
|
inline |
Checks whether this future object has its value set.
|
inline |
Checks whether this future object has a valid state.
|
protected |
Convenience wrapper for Then that set a completion callback that will be called once the future completes or immediately if already completed
| Continuation | a continuation taking an argument of type InternalResultType |
|
inlineprotected |
Reset the future.
Reseting a future removes any continuation from its shared state and invalidates it. Useful for discarding yet to be completed future cleanly.
|
protected |
Set a completion callback that will be called once the future completes or immediately if already completed
| Continuation | a continuation taking an argument of type TFuture<InternalResultType> |
|
inline |
|
inline |
|
inline |