Waiter
class Waiter
Constants
| DEFAULT_PUSH_TIMEOUT_SECONDS |
The default timeout for deferred result delivery and canceled child unwind. |
| protected DEFAULT_POP_TIMEOUT_SECONDS |
|
Properties
| protected float | $pushTimeout | ||
| protected float | $popTimeout |
Methods
__construct(float $timeout = self::DEFAULT_POP_TIMEOUT_SECONDS)
No description
mixed
void
cancelChild(int|null $childCoroutineId, bool $cancellationRequested)
Cancel the owned child once when it is still active.
Details
at line 30
__construct(float $timeout = self::DEFAULT_POP_TIMEOUT_SECONDS)
No description
at line 51
mixed
wait(Closure $closure, float|null $timeout = null, bool|array $copyContext = false, bool $waitForChildTermination = false)
Execute a closure in a coroutine and wait for the result.
at line 168
protected void
cancelChild(int|null $childCoroutineId, bool $cancellationRequested)
Cancel the owned child once when it is still active.