Remove a request from the pool.
RequestInterface $request Request to remove:
Overrides CurlMultiInterface::remove
public function remove(RequestInterface $request) {
$this
->removeHandle($request);
$this->requestCache = null;
foreach ($this->requests as $scope => $scopedRequests) {
$pos = array_search($request, $scopedRequests, true);
if ($pos !== false) {
unset($this->requests[$scope][$pos]);
break;
}
}
$this
->dispatch(self::REMOVE_REQUEST, array(
'request' => $request,
));
return $this;
}