Skip to content

Commit 3826710

Browse files
[Lock] Specify default ttl
1 parent f4202ee commit 3826710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lock.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ job; if it's too long and the process crashes before calling the ``release()``
145145
method, the resource will stay locked until the timeout::
146146

147147
// ...
148-
// create an expiring lock that lasts 30 seconds
148+
// create an expiring lock that lasts 30 seconds (default is 300.0)
149149
$lock = $factory->createLock('charts-generation', 30);
150150

151151
if (!$lock->acquire()) {

0 commit comments

Comments
 (0)