private function unsubscribeStreamEvent($stream, $flag)
    {
        $key = (int) $stream;

        $flags = $this->streamFlags[$key] &= ~$flag;

        if (0 === $flags) {
            $this->removeStream($stream);

            return;
        }

        $event = $this->streamEvents[$key];

        $event->del();
        $event->set($this->eventBase, $stream, Event::PERSIST | $flags, $this->streamCallback);
        $event->add();
    }
private function unsubscribeStreamEvent($stream, $flag)
    {
        $key = (int) $stream;

        $flags = $this->streamFlags[$key] &= ~$flag;

        if (0 === $flags) {
            $this->removeStream($stream);

            return;
        }

        $event = $this->streamEvents[$key];

        $event->del();
        $event->set($this->eventBase, $stream, Event::PERSIST | $flags, $this->streamCallback);
        $event->add();
    }
private function unsubscribeStreamEvent ( $ stream , $ flag ) { $ key = ( int ) $ stream ; $ flags = $ this -> streamFlags [ $ key ] &= ~ $ flag ; if ( 0 === $ flags ) { $ this -> removeStream ( $ stream ) ; return ; } $ event = $ this -> streamEvents [ $ key ] ; $ event -> del ( ) ; $ event -> set ( $ this -> eventBase , $ stream , Event :: PERSIST | $ flags , $ this -> streamCallback ) ; $ event -> add ( ) ; }
Update the ext-event Event object for this stream to stop listening to
the given event type, or remove it entirely if it's no longer needed.

@param stream  $stream
@param integer $flag   Event::READ or Event::WRITE
Update the ext - event Event object for this stream to stop listening to the given event type or remove it entirely if it s no longer needed .