Trait yii\mutex\RetryAcquireTrait

Implemented byyii\mutex\FileMutex, yii\mutex\PgsqlMutex
可用自版本2.0.16
源代码 https://github.com/yiisoft/yii2/blob/master/framework/mutex/RetryAcquireTrait.php

Trait RetryAcquireTrait.

公共属性

隐藏继承的属性

属性类型描述定义在
$retryDelay integer Number of milliseconds between each try in acquire() until specified timeout times out. yii\mutex\RetryAcquireTrait

属性详情

$retryDelay public 属性 (可用自版本: 2.0.16)

Number of milliseconds between each try in acquire() until specified timeout times out. By default it is 50 milliseconds - it means that acquire() may try acquire lock up to 20 times per second.

public integer $retryDelay 50