Kraken\Loop\LoopInterface::addReadStream PHP Method

addReadStream() public method

Register a listener to be notified when a stream is ready to read.
public addReadStream ( resource $stream, callable $listener )
$stream resource
$listener callable
    public function addReadStream($stream, callable $listener);

Usage Example

コード例 #1
0
ファイル: ZmqSocket.php プロジェクト: kraken-php/framework
 /**
  * Attach read listener.
  */
 public function attachReadListener()
 {
     $this->loop->addReadStream($this->fd, [$this, 'handleEvent']);
 }
All Usage Examples Of Kraken\Loop\LoopInterface::addReadStream