removeStream() public method

Remove all listeners for the given stream.
public removeStream ( resource $stream )
$stream resource
Ejemplo n.º 1
0
 /**
  * @override
  * @inheritDoc
  */
 public function removeStream($stream)
 {
     $this->loop->removeStream($stream);
 }
Ejemplo n.º 2
0
 /**
  * @dataProvider loopsProvider
  * @param LoopExtendedInterface|LoopModelInterface|mixed $loop
  */
 public function testApiRemoveStream_ThrowsNoErrors_OnInvalidStream($loop)
 {
     $stream = $this->createStream();
     $loop->removeStream($stream);
     unset($stream);
 }