|
| template<typename... ArgTypes> |
| void | EmplaceResult (ArgTypes &&... Args) |
| | Sets the result and notifies any waiting threads. 更多...
|
| |
| const InternalResultType & | GetResult () const |
| | Gets the result (will block the calling thread until the result is available). 更多...
|
| |
|
| TFutureState () |
| | Default constructor.
|
| |
| | TFutureState (TUniqueFunction< void()> &&CompletionCallback) |
| | Create and initialize a new instance with a callback. 更多...
|
| |
|
| FFutureState () |
| | Default constructor.
|
| |
| | FFutureState (TUniqueFunction< void()> &&InCompletionCallback) |
| | Create and initialize a new instance with a callback. 更多...
|
| |
| bool | IsComplete () const |
| | Checks whether the asynchronous result has been set. 更多...
|
| |
| void | SetContinuation (TUniqueFunction< void()> &&Continuation) |
| | Set a continuation to be called on completion of the promise 更多...
|
| |
| bool | WaitFor (const FTimespan &Duration) const |
| | Blocks the calling thread until the future result is available. 更多...
|
| |
|
| ~FFutureState () |
| | Destructor.
|
| |
template<typename InternalResultType>
class TFutureState< InternalResultType >
Implements the internal state of asynchronous return values (futures).