AsyncTask

Convenience function for executing code asynchronously on the Task Graph.

Choose your operating system:

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.