Method
WaitGroup::await
Waits until the counter is zero.
Description#
public WaitGroup::await(
float $timeout = PHP_FLOAT_MAX
): voidParameters#
- $timeout float = PHP_FLOAT_MAX
- Seconds to wait at most
Errors / Exceptions#
| Exception | When |
|---|---|
TimeoutException | If the counter is not zero in time |
LogicException | Outside a coroutine, if the counter is not zero |
See also#
WaitGroup::addAdds$deltato the counter of unfinished work.