public function CurlMultiHandler::execute in Lockr 7.3
Runs until all outstanding connections have completed.
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php, line 116
Class
- CurlMultiHandler
- Returns an asynchronous response using curl_multi_* functions.
Namespace
GuzzleHttp\HandlerCode
public function execute() {
$queue = P\queue();
while ($this->handles || !$queue
->isEmpty()) {
// If there are no transfers, then sleep for the next delay
if (!$this->active && $this->delays) {
usleep($this
->timeToNext());
}
$this
->tick();
}
}