private function CurlMultiHandler::timeToNext in Auth0 Single Sign On 8.2
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 207
Class
- CurlMultiHandler
- Returns an asynchronous response using curl_multi_* functions.
Namespace
GuzzleHttp\HandlerCode
private function timeToNext() {
$currentTime = Utils::currentTime();
$nextTime = PHP_INT_MAX;
foreach ($this->delays as $time) {
if ($time < $nextTime) {
$nextTime = $time;
}
}
return max(0, $nextTime - $currentTime) * 1000000;
}