Skip to content

Commit c0ee11b

Browse files
committed
minor #17165 [Lock] Specify default ttl (mohamedGasmii)
This PR was merged into the 4.4 branch. Discussion ---------- [Lock] Specify default ttl <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 3826710 [Lock] Specify default ttl
2 parents 83dc33f + 3826710 commit c0ee11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/lock.rst

Lines changed: 1 addition & 1 deletion
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)