public function removeReadStream($stream) { $key = (int) $stream; unset($this->readStreams[$key], $this->readListeners[$key]); }