public function quit() { $this->shutdown(); // Windows sucks if (Utils::getOS() !== "win") { parent::quit(); } }
public function isGarbage() : bool { parent::isGarbage(); }
/** * Commits a result into the output stream * * @internal Do <strong>not</strong> use this method outside this thread! * * @param QueryResult $result */ public function pushResult(QueryResult $result) { if (Thread::getCurrentThreadId() !== $this->myId) { throw new \InvalidStateException("Attempt to call a thread-private method " . __METHOD__); } $this->output[] = $result; }