You are here

public function CurlMultiHandler::execute in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php \GuzzleHttp\Handler\CurlMultiHandler::execute()

Runs until all outstanding connections have completed.

File

vendor/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php, line 114

Class

CurlMultiHandler
Returns an asynchronous response using curl_multi_* functions.

Namespace

GuzzleHttp\Handler

Code

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();
  }
}