![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Future.h>
Inheritance diagram for FFutureState:Public Member Functions | |
| FFutureState ()=default | |
| FFutureState (TUniqueFunction< void()> &&InCompletionCallback) | |
| bool | IsComplete () const |
| bool | WaitFor (const FTimespan &Duration) const |
| void | SetContinuation (TUniqueFunction< void()> &&Continuation) |
Protected Member Functions | |
| void | MarkComplete () |
Base class for the internal state of asynchronous return values (futures).
|
default |
Default constructor.
|
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.
|
inlineprotected |
Notifies any waiting threads that the result is available.
|
inline |
Set a continuation to be called on completion of the promise
| Continuation |
Blocks the calling thread until the future result is available.
| Duration | The maximum time span to wait for the future result. |