Navigation
API > API/Runtime > API/Runtime/Core
This namespace provides utilities for creating and accessing the state of tasks that run on separate threads. You can do this by using one of the Launch functions to start a task and return a handle for later use. For example: UE::Tasks::TTask
In this example, the task will run on any worker thread and return a result payload that can be accessed on the calling thread when the task has completed. Tasks can be launched with a list of prerequisites, which will delay execution of the task until the prerequisites have completed. UE::Tasks::FTaskEvent can be used as a prerequisite to support manual triggering of task execution.
Read the full documentation for an explanation of the different parameters to the launch function and the different ways to use the task handle after it has been launched.
| Name | UE::Tasks::ETaskFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/TaskPrivate.h |
| Include Path | #include "Tasks/TaskPrivate.h" |
Syntax
namespace UE
{
namespace Tasks
{
enum ETaskFlags
{
None,
DoNotRunInsideBusyWait,
}
}
}
Values
| Name | Remarks |
|---|---|
| None | |
| DoNotRunInsideBusyWait |