FFunctionGraphTask

Task class for lambda based tasks.

Windows
MacOS
Linux

Inheritance Hierarchy

FCustomStatIDGraphTaskBase

FFunctionGraphTask

References

Module

Core

Header

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

Include

#include "Async/TaskGraphInterfaces.h"

Syntax

class FFunctionGraphTask : public FCustomStatIDGraphTaskBase

Remarks

Task class for lambda based tasks.

Variables

Name Description

Public variable

const ENamedThr...

 

DesiredThread

Thread to run the function on

Public variable

TUniqueFunction...

 

Function

Function to run

Constructors

Name Description

Public function

FFunctionGraphTask

(
    TUniqueFunction< void()>&& InFunct...,
    const TStatId StatId,
    ENamedThreads::Type InDesiredThread
)

Task constructor

Functions

Name Description

Public function Static

FGraphEventR...

 

CreateAndDispatchWhenReady

(
    TUniqueFunction< void()> InFunction,
    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

(
    TUniqueFunction< void()> InFunction,
    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()

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