Navigation
API > API/Runtime > API/Runtime/Core
Implements the internal state of asynchronous return values (futures).
| Name | TFutureState |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
Syntax
template<typename ResultType>
class TFutureState : public FFutureState
Inheritance Hierarchy
- FFutureState → TFutureState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TFutureState () |
Default constructor. | Async/Future.h | |
TFutureState
(
TUniqueFunction< void()>&& CompletionCallback |
Create and initialize a new instance with a callback. | Async/Future.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TFutureState() |
Async/Future.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ConstResultType | typename TTypeCompatibleBytes< ResultType >::ConstGetType | Async/Future.h | |
| MutableResultType | typename TTypeCompatibleBytes< ResultType >::MutableGetType | Async/Future.h | |
| RvalueResultType | typename TTypeCompatibleBytes< ResultType >::RvalueGetType | Async/Future.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Result | TTypeCompatibleBytes< ResultType > | Holds the asynchronous result. | Async/Future.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EmplaceResult
(
ArgTypes&&... Args |
Sets the result and notifies any waiting threads. | Async/Future.h | |
MutableResultType GetResult () |
Gets the result (will block the calling thread until the result is available). | Async/Future.h | |
ConstResultType GetResult () |
Async/Future.h |