Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async
Inheritance Hierarchy
- FFutureState
- TFutureState
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include | #include "Async/Future.h" |
Syntax
class FFutureState
Remarks
Base class for the internal state of asynchronous return values (futures).
Constructors
| Type | Name | Description | |
|---|---|---|---|
FFutureState () |
Default constructor. | ||
FFutureState
(
TUniqueFunction< void()>&& InCompletionCallback |
Create and initialize a new instance with a callback. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsComplete () |
Checks whether the asynchronous result has been set. | |
| void | MarkComplete () |
Notifies any waiting threads that the result is available. | |
| void | SetContinuation
(
TUniqueFunction< void()>&& Continuation |
Set a continuation to be called on completion of the promise | |
| bool | Blocks the calling thread until the future result is available. |