TAsyncRunnable

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

Choose your operating system:

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