FDelegateGraphTask::CreateAndDispatchWhenReady

Create a task and dispatch it when the prerequisites are complete

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Async/TaskGraphInterfaces.h"

Syntax

static FGraphEventRef CreateAndDispatchWhenReady
(
    const FDelegate & InTaskDeletegate,
    const TStatId InStatId,
    const FGraphEventArray * InPrerequisites,
    ENamedThreads::Type InCurrentThreadIfKnown,
    ENamedThreads::Type InDesiredThread
)

Remarks

Create a task and dispatch it when the prerequisites are complete

Returns

completion handle for the new task

Parameters

Parameter

Description

InTaskDelegate

delegate to execute when the prerequisites are complete

InStatId

The stat id for this task.

InPrerequisites

Handles for prerequisites for this task, can be NULL if there are no prerequisites

InCurrentThreadIfKnown

This thread, if known

InDesiredThread

Thread to run on

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