Navigation
API > API/Runtime > API/Runtime/Core > API/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 TaskCollectionType>
int32 UE::Tasks::WaitAny
(
const TaskCollectionType & Tasks,
FTimespan Timeout
)
}
}
Remarks
"any task" support. these functions allocate excessively (per input task plus more). can be reduced to a single alloc if this is a perf issue Blocks the current thread until any of the given tasks is completed. Is slightly more efficient than [Any()](API\Runtime\Core\Tasks\UE__Tasks__Any).[Wait()](API\Runtime\Core\Tasks\UE__Tasks__Wait\2)_. Returns the index of the first completed task, or INDEX_NONE_ on timeout