| 1 | <?php |
||
| 18 | trait RetryAcquireTrait |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var int Number of milliseconds between each try in [[acquire()]] until specified timeout times out. |
||
| 22 | * By default it is 50 milliseconds - it means that [[acquire()]] may try acquire lock up to 20 times per second. |
||
| 23 | * @since 2.0.16 |
||
| 24 | */ |
||
| 25 | public $retryDelay = 50; |
||
| 26 | |||
| 27 | |||
| 28 | 24 | private function retryAcquire($timeout, Closure $callback) |
|
| 40 | } |
||
| 41 |