Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FTaskConcurrencyLimiter
Description
Waits for task's completion with timeout.
A wait is satisfied once the internal task counter reaches 0 and is never reset afterward when more tasks are added. A new FTaskConcurrencyLimiter can be used for such a use case.
| Name | Wait |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Tasks/TaskConcurrencyLimiter.h |
| Include Path | #include "Tasks/TaskConcurrencyLimiter.h" |
bool Wait
(
FTimespan Timeout
)
true if all tasks are completed, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Timeout | Maximum amount of time to wait for tasks to finish before returning. |