add($this); if($this->getClassLoader() === null){ $this->setClassLoader(); } return parent::start($options); } /** * Stops the thread using the best way possible. Try to stop it yourself before calling this. */ public function quit() : void{ $this->isKilled = true; if(!$this->isJoined()){ $this->notify(); $this->join(); } ThreadManager::getInstance()->remove($this); } }