Template for promises (specialization for void results). 更多...
#include <Future.h>
继承自 TPromiseBase< InternalResultType > .
Public 成员函数 | |
| void | EmplaceValue () |
| Sets the promised result. 更多... | |
| TFuture< void > | GetFuture () |
| Gets a TFuture object associated with the shared state of this promise. 更多... | |
| TPromise & | operator= (TPromise &&Other) |
| Move assignment operator. 更多... | |
| FORCEINLINE void | SetValue () |
| Sets the promised result. 更多... | |
| TPromise () | |
| Default constructor (creates a new shared state). | |
| TPromise (TPromise &&Other) | |
| Move constructor. 更多... | |
| TPromise (TUniqueFunction< void()> &&CompletionCallback) | |
| Create and initialize a new instance with a callback. 更多... | |
Template for promises (specialization for void results).
|
inline |
Move constructor.
| Other | The promise holding the shared state to move. |
|
inline |
Create and initialize a new instance with a callback.
| CompletionCallback | A function that is called when the future state is completed. |
|
inline |
Sets the promised result.
The result must be set only once. An assertion will be triggered if this method is called a second time.
| Result | The result value to set. |
Move assignment operator.
| Other | The promise holding the shared state to move. |
|
inline |
Sets the promised result.
The result must be set only once. An assertion will be triggered if this method is called a second time.