AsyncTask

Convenience function for executing code asynchronously on the Task Graph.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Async/Async.h"

Source

/Engine/Source/Runtime/Core/Private/Async/Async.cpp

Syntax

void AsyncTask
(
    ENamedThreads::Type Thread,
    TUniqueFunction< void()> Function
)

Remarks

Convenience function for executing code asynchronously on the Task Graph.

Parameters

Parameter

Description

Thread

The name of the thread to run on.

Function

The function to execute.

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