private function free()
    {
        $this->readable = false;

        if ($this->deferred !== null) {
            $deferred = $this->deferred;
            $this->deferred = null;
            $deferred->resolve();
        }

        Loop::cancel($this->watcher);

        if ($this->immediateWatcher !== null) {
            Loop::cancel($this->immediateWatcher);
        }
    }
private function free()
    {
        $this->readable = false;

        if ($this->deferred !== null) {
            $deferred = $this->deferred;
            $this->deferred = null;
            $deferred->resolve();
        }

        Loop::cancel($this->watcher);

        if ($this->immediateWatcher !== null) {
            Loop::cancel($this->immediateWatcher);
        }
    }
private function free ( ) { $ this -> readable = false ; if ( $ this -> deferred !== null ) { $ deferred = $ this -> deferred ; $ this -> deferred = null ; $ deferred -> resolve ( ) ; } Loop :: cancel ( $ this -> watcher ) ; if ( $ this -> immediateWatcher !== null ) { Loop :: cancel ( $ this -> immediateWatcher ) ; } }
Nulls reference to resource, marks stream unreadable, and succeeds any pending read with null.
Nulls reference to resource marks stream unreadable and succeeds any pending read with null .