Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurlMultiHandler.php

function CurlMultiHandler::tickInQueue

Runs \curl_multi_exec() inside the event loop, to prevent busy looping

File

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

Class

CurlMultiHandler
Returns an asynchronous response using curl_multi_* functions.

Namespace

GuzzleHttp\Handler

Code

private function tickInQueue() : void {
    if (\curl_multi_exec($this->_mh, $this->active) === \CURLM_CALL_MULTI_PERFORM) {
        \curl_multi_select($this->_mh, 0);
        P\Utils::queue()->add(Closure::fromCallable([
            $this,
            'tickInQueue',
        ]));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal