class Waiter

Properties

protected float $pushTimeout
protected float $popTimeout

Methods

__construct(float $timeout = 10.0)

No description

mixed
wait(Closure $closure, float|null $timeout = null)

Execute a closure in a coroutine and wait for the result.

Details

at line 20
__construct(float $timeout = 10.0)

No description

Parameters

float $timeout

at line 34
mixed wait(Closure $closure, float|null $timeout = null)

Execute a closure in a coroutine and wait for the result.

Parameters

Closure $closure
float|null $timeout

Timeout in seconds (null uses default)

Return Value

mixed

Exceptions

WaitTimeoutException