public function run()
{
$this->result = null;
$this->isGarbage = false;
if ($this->cancelRun !== true) {
try {
$this->onRun();
} catch (\Throwable $e) {
$this->crashed = true;
$this->worker->handleException($e);
}
}
$this->isFinished = true;
//$this->setGarbage();
}