src/Worker.php
public function terminate()
    {
        $this->busy = true;
        $this->emit('terminating', [$this]);
        return $this->messenger->softTerminate();
    }
public function terminate()
    {
        $this->busy = true;
        $this->emit('terminating', [$this]);
        return $this->messenger->softTerminate();
    }
/*
@return PromiseInterface