Skip to content

Commit ff25973

Browse files
Update documentation regarding #6
1 parent 147e85b commit ff25973

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ $mutex->synchronized(function () use ($bankAccount, $amount) {
118118
});
119119
```
120120

121+
Timeouts are supported as an optional second argument. This uses the pcntl extension if
122+
possible or busy waiting if not.
123+
121124
#### MemcachedMutex
122125

123126
The **MemcachedMutex**

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"predis/predis": "~1.0",
4545
"squizlabs/php_codesniffer": "^3.2"
4646
},
47+
"suggest": {
48+
"ext-pnctl": "Enables locking with flock without busy waiting in CLI scripts"
49+
},
4750
"archive": {
4851
"exclude": ["/tests"]
4952
},

0 commit comments

Comments
 (0)