Method
RateLimiter::await
Waits for a permit and takes it.
Description#
public RateLimiter::await(
float $timeout = PHP_FLOAT_MAX
): voidParameters#
- $timeout float = PHP_FLOAT_MAX
- Seconds to wait at most
Errors / Exceptions#
| Exception | When |
|---|---|
TimeoutException | If no permit came in time |