Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async
Inheritance Hierarchy
- TFutureBase
- TFuture
- TFuture< ResultType & >
- TFuture< void >
- TSharedFuture
- TSharedFuture< ResultType & >
- TSharedFuture< void >
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include | #include "Async/Future.h" |
Syntax
template<typename InternalResultType>
class TFutureBase
Remarks
TFuture Abstract base template for futures and shared futures.
Constructors
| Type | Name | Description | |
|---|---|---|---|
TFutureBase () |
Default constructor. | ||
TFutureBase
(
const StateType& InState |
Creates and initializes a new instance. | ||
TFutureBase
(
TFutureBase&& |
Protected move construction | ||
TFutureBase
(
const TFutureBase& |
Protected copy construction |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~TFutureBase () |
Protected destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const StateType & | GetState () |
Gets the shared state object. | |
| bool | IsReady () |
Checks whether this future object has its value set. | |
| bool | IsValid () |
Checks whether this future object has a valid state. | |
| auto | Next
(
Func Continuation |
Next implementation. | |
| void | Reset () |
Reset the future. | |
| auto | Then
(
Func Continuation |
Then implementation. | |
| void | Wait () |
Blocks the calling thread until the future result is available. | |
| bool | Blocks the calling thread until the future result is available or the specified duration is exceeded. | ||
| bool | Blocks the calling thread until the future result is available or the specified time is hit. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| TFutureBase & | operator=
(
TFutureBase&& |
Protected move assignment | |
| TFutureBase & | operator=
(
const TFutureBase& |
Protected copy assignment |
Typedefs
| Name | Description |
|---|---|
| StateType |