We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a1216 commit cbef652Copy full SHA for cbef652
classes/util/Loop.php
@@ -84,7 +84,7 @@ public function execute(callable $code)
84
/*
85
* Calculate max time remaining, don't sleep any longer than that.
86
*/
87
- $usecRemaining = \intval(($timeout - \microtime(true)) * 1e6);
+ $usecRemaining = \intval(($timeout - microtime(true)) * 1e6);
88
89
if ($usecRemaining <= 0) {
90
@@ -95,10 +95,10 @@ public function execute(callable $code)
95
96
$usleep = \min($usecRemaining, \random_int($min, $max));
97
98
- \usleep($usleep);
+ usleep($usleep);
99
}
100
101
- if (\microtime(true) >= $timeout) {
+ if (microtime(true) >= $timeout) {
102
throw new TimeoutException("Timeout of $this->timeout seconds exceeded.");
103
104
0 commit comments