TAsyncRunnable::TAsyncRunnable

Creates and initializes a new instance.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Async/Async.h"

Syntax

TAsyncRunnable
(
    TUniqueFunction< ResultType()> && InFunction,
    TPromise< ResultType > && InPromise,
    TFuture< FRunnableThread * > && InThreadFuture
)

Remarks

Creates and initializes a new instance.

Parameters

Parameter

Description

InFunction

The function to execute asynchronously.

InPromise

The promise object used to return the function's result.

InThreadFuture

The thread that is running this task.

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