Base class for the internal state of asynchronous return values (futures). 更多...
#include <Future.h>
类 FFutureState 继承关系图:Public 成员函数 | |
| 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. | |
Protected 成员函数 | |
| void | MarkComplete () |
| Notifies any waiting threads that the result is available. | |
Base class for the internal state of asynchronous return values (futures).
|
inline |
Create and initialize a new instance with a callback.
| InCompletionCallback | A function that is called when the state is completed. |
|
inline |
Checks whether the asynchronous result has been set.
|
inline |
Set a continuation to be called on completion of the promise
| Continuation |
|
inline |
Blocks the calling thread until the future result is available.
| Duration | The maximum time span to wait for the future result. |