Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTaskHandle
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Launch
(
const TCHAR* DebugName, |
Launches a task for asynchronous execution | Tasks/Task.h | |
void Launch
(
const TCHAR* DebugName, |
Launches a task for asynchronous execution, with prerequisites that must be completed before the task is scheduled | Tasks/Task.h |
Launch(const TCHAR *, TaskBodyType &&, ETaskPriority, EExtendedTaskPriority, ETaskFlags)
Description
Launches a task for asynchronous execution
| Name | Launch |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
| Include Path | #include "Tasks/Task.h" |
template<typename TaskBodyType>
void Launch
(
const TCHAR * DebugName,
TaskBodyType && TaskBody,
ETaskPriority Priority,
EExtendedTaskPriority ExtendedPriority,
ETaskFlags Flags
)
a trivially relocatable instance that can be used to wait for task completion or to obtain task execution result
Parameters
| Name | Remarks |
|---|---|
| DebugName | a unique name for task identification in debugger and profiler, is compiled out in test/shipping builds |
| TaskBody | a functor that will be executed asynchronously |
| Priority | task priority that affects when the task will be executed |
| TaskFlags | task config options |
Launch(const TCHAR *, TaskBodyType &&, PrerequisitesCollectionType &&, ETaskPriority, EExtendedTaskPriority, ETaskFlags)
Description
Launches a task for asynchronous execution, with prerequisites that must be completed before the task is scheduled
| Name | Launch |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
| Include Path | #include "Tasks/Task.h" |
template<typename TaskBodyType, typename PrerequisitesCollectionType>
void Launch
(
const TCHAR * DebugName,
TaskBodyType && TaskBody,
PrerequisitesCollectionType && Prerequisites,
ETaskPriority Priority,
EExtendedTaskPriority ExtendedPriority,
ETaskFlags Flags
)
a trivially relocatable instance that can be used to wait for task completion or to obtain task execution result
Parameters
| Name | Remarks |
|---|---|
| DebugName | a unique name for task identification in debugger and profiler, is compiled out in test/shipping builds |
| TaskBody | a functor that will be executed asynchronously |
| Prerequisites | tasks or task events that must be completed before the task being launched can be scheduled, accepts any iterable collection (.begin()/.end()), Tasks::Prerequisites() helper is recommended to create such collection on the fly |
| Priority | task priority that affects when the task will be executed |
| TaskFlags | task config options |