![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Future.h>
Inheritance diagram for TFutureState< ResultType >:Public Types | |
| using | MutableResultType = typename TTypeCompatibleBytes< ResultType >::MutableGetType |
| using | ConstResultType = typename TTypeCompatibleBytes< ResultType >::ConstGetType |
| using | RvalueResultType = typename TTypeCompatibleBytes< ResultType >::RvalueGetType |
Public Member Functions | |
| TFutureState () | |
| ~TFutureState () | |
| TFutureState (TUniqueFunction< void()> &&CompletionCallback) | |
| MutableResultType | GetResult () |
| ConstResultType | GetResult () const |
| template<typename... ArgTypes> | |
| void | EmplaceResult (ArgTypes &&... Args) |
Public Member Functions inherited from FFutureState | |
| FFutureState ()=default | |
| FFutureState (TUniqueFunction< void()> &&InCompletionCallback) | |
| bool | IsComplete () const |
| bool | WaitFor (const FTimespan &Duration) const |
| void | SetContinuation (TUniqueFunction< void()> &&Continuation) |
Additional Inherited Members | |
Protected Member Functions inherited from FFutureState | |
| void | MarkComplete () |
Implements the internal state of asynchronous return values (futures).
| using TFutureState< ResultType >::ConstResultType = typename TTypeCompatibleBytes<ResultType>::ConstGetType |
| using TFutureState< ResultType >::MutableResultType = typename TTypeCompatibleBytes<ResultType>::MutableGetType |
| using TFutureState< ResultType >::RvalueResultType = typename TTypeCompatibleBytes<ResultType>::RvalueGetType |
|
inline |
Default constructor.
|
inline |
|
inline |
Create and initialize a new instance with a callback.
| CompletionCallback | A function that is called when the state is completed. |
|
inline |
Sets the result and notifies any waiting threads.
| Args | The arguments to forward to the constructor of the result. |
|
inline |
Gets the result (will block the calling thread until the result is available).
|
inline |