FSimpleDelegateGraphTask

Task class for simple delegate based tasks.

Windows
MacOS
Linux

Inheritance Hierarchy

FCustomStatIDGraphTaskBase

FSimpleDelegateGraphTask

References

Module

Core

Header

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

Include

#include "Async/TaskGraphInterfaces.h"

Syntax

class FSimpleDelegateGraphTask : public FCustomStatIDGraphTaskBase

Remarks

Task class for simple delegate based tasks. This is less efficient than a custom task, doesn't provide the task arguments, doesn't allow specification of the current thread, etc.

Variables

Name Description

Public variable

const ENamedThr...

 

DesiredThread

Thread to run delegate on

Public variable

FDelegate

 

TaskDelegate

Delegate to fire when task runs

Constructors

Name Description

Public function

FSimpleDelegateGraphTask

(
    const FDelegate& InTaskDeletegate,
    const TStatId StatId,
    ENamedThreads::Type InDesiredThread
)

Task constructor

Functions

Name Description

Public function Static

FGraphEventR...

 

CreateAndDispatchWhenReady

(
    const FDelegate& InTaskDeletegate,
    const TStatId InStatId,
    const FGraphEventArray* InPrer...,
    ENamedThreads::Type InDesiredThread
)

Create a task and dispatch it when the prerequisites are complete

Public function Static

FGraphEventR...

 

CreateAndDispatchWhenReady

(
    const FDelegate& InTaskDeletegate,
    const TStatId&& InStatId,
    const FGraphEventRef& InPrerequisi...,
    ENamedThreads::Type InDesiredThread
)

Create a task and dispatch it when the prerequisites are complete

Public function

void

 

DoTask

(
    ENamedThreads::Type CurrentThread,
    const FGraphEventRef& MyCompletion...
)

Public function

ENamedThread...

 

GetDesiredThread()

Public function Static

ESubsequents...

 

GetSubsequentsMode()

Typedefs

Name

Description

FDelegate

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