Navigation
Unreal Engine C++ API Reference > Runtime > Core > Tasks
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
Include | #include "Tasks/Task.h" |
namespace UE
{
namespace Tasks
{
template<typename TaskType>
void UE&58;&58;Tasks&58;&58;AddNested
&40;
const TaskType & Nested
&41;
}
}
Remarks
Adds the nested task to the task that is being currently executed by the current thread. A parent task is not flagged completed until all nested tasks are completed. It's similar to explicitly waiting for a sub-task at the end of its parent task, except explicit waiting blocks the worker executing the parent task until the sub-task is completed. With nested tasks, the worker won't be blocked.