removeStream() public method

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