private function CurlMultiHandler::timeToNext in Lockr 7.3
1 call to CurlMultiHandler::timeToNext()
- CurlMultiHandler::execute in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php - Runs until all outstanding connections have completed.
File
- vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php, line 187
Class
- CurlMultiHandler
- Returns an asynchronous response using curl_multi_* functions.
Namespace
GuzzleHttp\HandlerCode
private function timeToNext() {
$currentTime = microtime(true);
$nextTime = PHP_INT_MAX;
foreach ($this->delays as $time) {
if ($time < $nextTime) {
$nextTime = $time;
}
}
return max(0, $nextTime - $currentTime) * 1000000;
}