Skip to content

Commit 1170a7c

Browse files
committed
[symfony#12523] Reworded caution
1 parent 2900e50 commit 1170a7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ To lock the default resource, autowire the lock using
181181
.. caution::
182182

183183
The same instance of ``LockInterface`` won't block when calling ``acquire``
184-
multiple times. Inside the same process, when several services share the
185-
same instance of ``LockInterface``, they won't lock each other. When the
186-
same process run concurent tasks, inject the ``LockFactory`` instead.
184+
multiple times inside the same process. When several services use the
185+
same lock, inject the ``LockFactory`` instead to create a separate lock
186+
instance for each service.
187187

188188
Locking a Dynamic Resource
189189
--------------------------

0 commit comments

Comments
 (0)