Navigation
Unreal Engine C++ API Reference > Runtime > Core > Tasks > UE::Tasks::Launch
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
Include | #include "Tasks/Task.h" |
namespace UE
{
namespace Tasks
{
template<typename TaskBodyType>
TTask< TInvokeResult_T< TaskBodyType > > UE&58;&58;Tasks&58;&58;Launch
&40;
const TCHAR &42; DebugName,
TaskBodyType && TaskBody,
ETaskPriority Priority,
EExtendedTaskPriority ExtendedPriority
&41;
}
}
Remarks
Launches a task for asynchronous execution a trivially relocatable instance that can be used to wait for task completion or to obtain task execution result
Parameters
Name | Description |
---|---|
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 |