/** * Kill this thread after it's been launched. * @throws Exceptions\NoSuchProcessException * @throws InvalidThreadKeyException * @return void */ public final function killThread() { $this->getRedisInstance()->delete($this->getThreadKey()); foreach (ProcessControl::getProcessIdsOfThreadKey($this->getThreadKey()) as $ProcessId) { ProcessControl::kill($ProcessId); } }