Kraken\Channel\Record\RequestRecordStorage::cancelRequest PHP Метод

cancelRequest() защищенный Метод

Cancel RequestRecord if it exists that has protocol ID equal to $pid.
protected cancelRequest ( string $pid, Erro\Error | Exceptio\Exception | ThrowableProxy $ex )
$pid string
$ex Erro\Error | Exceptio\Exception | Kraken\Throwable\ThrowableProxy
    protected function cancelRequest($pid, $ex)
    {
        $callback = $this->reqs[$pid]->onCancel();
        unset($this->reqs[$pid]);
        $callback($ex);
    }