Kraken\Channel\Record\RequestRecord::cancel PHP Method

cancel() public method

Cancel Request calling cancellation handler.
public cancel ( Erro\Error | Exceptio\Exception | ThrowableProxy $ex ) : mixed
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
return mixed
    public function cancel($ex)
    {
        $callback = $this->onCancel();
        return $callback($ex);
    }