Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Tasks > API/Runtime/Core/Tasks/FTaskConcurrencyLimiter
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Tasks/TaskConcurrencyLimiter.h |
| Include | #include "Tasks/TaskConcurrencyLimiter.h" |
bool Wait
(
FTimespan Timeout
)
Remarks
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. true if all tasks are completed, false otherwise.
Parameters
| Name | Description |
|---|---|
| Timeout | Maximum amount of time to wait for tasks to finish before returning. |