TAsyncRunnable

Template for asynchronous functions that are executed in a separate thread.

Windows
MacOS
Linux

Inheritance Hierarchy

FRunnable

TAsyncRunnable

References

Module

Core

Header

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

Include

#include "Async/Async.h"

Syntax

template<typename ResultType>
class TAsyncRunnable : public FRunnable

Remarks

Template for asynchronous functions that are executed in a separate thread.

Constructors

Name Description

Public function

TAsyncRunnable

(
    TUniqueFunction< ResultType()>&& I...,
    TPromise< ResultType >&& InPromise,
    TFuture< FRunnableThread* >&&...
)

Creates and initializes a new instance.

Overridden from FRunnable

Name Description

Public function Virtual

uint32

 

Run()

Inline functions

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