Navigation
API > API/Runtime > API/Runtime/Core
Template for asynchronous return values.
| Name | TAsyncResult |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/AsyncResult.h |
| Include Path | #include "Async/AsyncResult.h" |
Syntax
template<typename ResultType>
class TAsyncResult
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncResult () |
Default constructor. | Async/AsyncResult.h | |
TAsyncResult
(
const ArgType& Result |
Creates and initializes a new instance with the given synchronous result value. | Async/AsyncResult.h | |
TAsyncResult
(
TAsyncResult&& Other |
Move constructor. | Async/AsyncResult.h | |
TAsyncResult
(
const TAsyncResult& |
Hidden copy constructor (async results cannot be copied). | Async/AsyncResult.h | |
TAsyncResult
(
TFuture< ResultType >&& InFuture, |
Creates and initializes a new instance | Async/AsyncResult.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Future | TFuture< ResultType > | The future. | Async/AsyncResult.h | |
| Progress | TSharedPtr< IAsyncProgress > | The progress object. | Async/AsyncResult.h | |
| Task | TSharedPtr< IAsyncTask > | The task object. | Async/AsyncResult.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TFuture< ResultType > & GetFuture() |
Gets the future that will hold the result. | Async/AsyncResult.h | |
TSharedPtr< IAsyncProgress > GetProgess() |
Get an object that indicates the progress of the task that is computing the result. | Async/AsyncResult.h | |
TSharedPtr< IAsyncTask > GetTask() |
Get the asynchronous task that is computing the result. | Async/AsyncResult.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TAsyncResult & operator=
(
TAsyncResult&& Other |
Move assignment operator. | Async/AsyncResult.h | |
TAsyncResult & operator=
(
const TAsyncResult& |
Hidden copy assignment (async results cannot be copied). | Async/AsyncResult.h |