TAsyncRunnable::TAsyncRunnable

Creates and initializes a new instance.

Choose your operating system:

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.