Navigation
API > API/Runtime > API/Runtime/Core
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.
| Name | FSimpleDelegateGraphTask |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h |
| Include Path | #include "Async/TaskGraphInterfaces.h" |
Syntax
class FSimpleDelegateGraphTask : public FCustomStatIDGraphTaskBase
Inheritance Hierarchy
- FCustomStatIDGraphTaskBase → FSimpleDelegateGraphTask
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimpleDelegateGraphTask
(
const FDelegate& InTaskDeletegate, |
Task constructor | Async/TaskGraphInterfaces.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FDelegate | TBaseDelegate_NoParams< void > | Async/TaskGraphInterfaces.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DesiredThread | const ENamedThreads::Type | Thread to run delegate on | Async/TaskGraphInterfaces.h | |
| TaskDelegate | FDelegate | Delegate to fire when task runs | Async/TaskGraphInterfaces.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void DoTask
(
ENamedThreads::Type CurrentThread, |
Async/TaskGraphInterfaces.h | ||
ENamedThreads::Type GetDesiredThread() |
Async/TaskGraphInterfaces.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FGraphEventRef CreateAndDispatchWhenReady
(
const FDelegate& InTaskDeletegate, |
Create a task and dispatch it when the prerequisites are complete | Async/TaskGraphInterfaces.h | |
static FGraphEventRef CreateAndDispatchWhenReady
(
const FDelegate& InTaskDeletegate, |
Create a task and dispatch it when the prerequisites are complete | Async/TaskGraphInterfaces.h | |
static ESubsequentsMode::Type GetSubsequentsMode() |
Async/TaskGraphInterfaces.h |