class Waiter extends Waiter

Properties

protected float $pushTimeout from  Waiter
protected float $popTimeout from  Waiter

Methods

__construct(float $timeout = 10.0)

No description

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

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

Details

in Waiter at line 20
__construct(float $timeout = 10.0)

No description

Parameters

float $timeout

at line 13
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