Navigation
API > API/Runtime > API/Runtime/Core
Description
"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().Wait()_. Returns the index of the first completed task, or INDEX_NONE_ on timeout
| Name | UE::Tasks::WaitAny |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/Task.h |
| Include Path | #include "Tasks/Task.h" |
namespace UE
{
namespace Tasks
{
template<typename TaskCollectionType>
int32 UE::Tasks::WaitAny
(
const TaskCollectionType & Tasks,
FTimespan Timeout
)
}
}