Method
PollerInterface::writable
Parks the current coroutine until poll() finds $stream writable.
Description#
public PollerInterface::writable(
mixed $stream,
float $timeout = PHP_FLOAT_MAX
): voidOtherwise as readable(). One coroutine at a time waits to write to a stream; a reader may wait meanwhile.
Parameters#
- $stream mixed
- $timeout float = PHP_FLOAT_MAX
Errors / Exceptions#
| Exception | When |
|---|---|
LogicException | If another coroutine is waiting to write to $stream |
IOException | If polling fails for this stream |
TimeoutException | After $timeout seconds |