addReadStream()
addReadStream(\React\EventLoop\stream $stream, callable $listener)
Register a listener to be notified when a stream is ready to read.
Parameters
\React\EventLoop\stream | $stream | The PHP stream resource to check. |
callable | $listener | Invoked when the stream is ready. |