Graze\Supervisor\ProcessSupervisor::restart PHP Method

restart() public method

public restart ( callable $fn = null ) : Graze\Supervisor\SupervisorInterface
$fn callable
return Graze\Supervisor\SupervisorInterface
    public function restart(callable $fn = null)
    {
        $this->retries += 1;
        $this->process = $this->process->restart($fn);
        return $this;
    }