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 e32e259 commit 3a2a292Copy full SHA for 3a2a292
classes/util/Loop.php
@@ -22,14 +22,14 @@ class Loop
22
*
23
* @var double
24
*/
25
- private const MINIMUM_WAIT_US = 1e4;
+ private const MINIMUM_WAIT_US = 1e4; // 0.01 seconds
26
27
/**
28
* Maximum time that we want to wait, between lock checks. In micro seconds.
29
30
31
32
- private const MAXIMUM_WAIT_US = 1e6;
+ private const MAXIMUM_WAIT_US = 5e5; // 0.50 seconds
33
34
35
* @var int The timeout in seconds.
@@ -110,7 +110,7 @@ public function execute(callable $code)
110
}
111
112
$min = min(
113
- (int) self::MINIMUM_WAIT_US * 1.5 ** $i,
+ (int) self::MINIMUM_WAIT_US * 1.25 ** $i,
114
self::MAXIMUM_WAIT_US
115
);
116
$max = min($min * 2, self::MAXIMUM_WAIT_US);
0 commit comments