TAsyncResult

Template for asynchronous return values.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/AsyncResult.h

Include

#include "Async/AsyncResult.h"

Syntax

template<typename ResultType>
class TAsyncResult

Remarks

Template for asynchronous return values.

Constructors

Name Description

Public function

TAsyncResult()

Default constructor.

Public function

TAsyncResult

(
    const ResultType& Result
)

Creates and initializes a new instance with the given synchronous result value.

Public function

TAsyncResult

(
    TAsyncResult&& Other
)

Move constructor.

Public function

TAsyncResult

(
    TFuture< ResultType >&& InFuture,
    const TSharedPtr< IAsyncProgress > ...,
    const TSharedPtr< IAsyncTask >& In...
)

Creates and initializes a new instance

Functions

Name Description

Public function Const

const TFutur...

 

GetFuture()

Gets the future that will hold the result.

Public function Const

TSharedPtr< ...

 

GetProgess()

Get an object that indicates the progress of the task that is computing the result.

Public function Const

TSharedPtr< ...

 

GetTask()

Get the asynchronous task that is computing the result.

Operators

Name Description

Public function

TAsyncResult...

 

operator=

(
    TAsyncResult&& Other
)

Move assignment operator.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss