Navigation
API > API/Runtime > API/Runtime/Core
TSharedFuture Template for shared futures.
| Name | TSharedFuture |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/Future.h |
| Include Path | #include "Async/Future.h" |
Syntax
template<typename ResultType>
class TSharedFuture : public TFutureBase< ResultType >
Inheritance Hierarchy
- TFutureBase → TSharedFuture
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor. | Async/Future.h | ||
TSharedFuture
(
TFuture< ResultType >&& Future |
Creates and initializes a new instances from a future object. | Async/Future.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BaseType | TFutureBase< ResultType > | Async/Future.h | |
| ConstResultType | typename BaseType::ConstResultType | Async/Future.h | |
| MutableResultType | typename BaseType::MutableResultType | Async/Future.h | |
| RvalueResultType | typename BaseType::RvalueResultType | Async/Future.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ConstResultType Get() |
Gets the future's result.Not equivalent to std::future::get(). The future remains valid. | Async/Future.h |