Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Tasks > API/Runtime/Core/Tasks/FPipe > API/Runtime/Core/Tasks/FPipe/Launch
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Tasks/Pipe.h |
| Include | #include "Tasks/Pipe.h" |
template<typename TaskBodyType>
TTask < TInvokeResult_T < TaskBodyType > > Launch
(
const TCHAR * InDebugName,
TaskBodyType && TaskBody,
ETaskPriority Priority,
EExtendedTaskPriority ExtendedPriority,
ETaskFlags Flags
)
Remarks
Launches a task in the pipe Task instance that can be used to wait for task completion or to obtain the result of task execution
Parameters
| Name | Description |
|---|---|
| InDebugName | helps to identify the task in debugger and profiler |
| TaskBody | a callable with no parameters, usually a lambda but can be also a functor object or a pointer to a function. TaskBody can return results. @Priority - task priority, can affect task scheduling once it's passed the pipe |
| TaskFlags | task config options |