Trait yii\mutex\RetryAcquireTrait
实现 | yii\mutex\FileMutex, yii\mutex\PgsqlMutex |
---|---|
源码 | https://github.com/yiichina/yii2/blob/api/framework/mutex/RetryAcquireTrait.php |
Trait RetryAcquireTrait.
公共属性
属性 | 类型 | 描述 | 被定义在 |
---|---|---|---|
$retryDelay | integer | Number of milliseconds between each try in \yii\mutex\acquire() until specified timeout times out. | yii\mutex\RetryAcquireTrait |
属性详情
Number of milliseconds between each try in \yii\mutex\acquire() until specified timeout times out. By default it is 50 milliseconds - it means that \yii\mutex\acquire() may try acquire lock up to 20 times per second.