8000 Reword concurency in same process · symfony/symfony-docs@39f7906 · GitHub
[go: up one dir, main page]

Skip to content

Commit 39f7906

Browse files
committed
Reword concurency in same process
1 parent 0e9449c commit 39f7906

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lock.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +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. If several services share the same ``lock`` service, they
185-
won't lock each other, use ``LockFactory`` instead.
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 the ``LockFactory`` instead.
186187

187188
Locking a Dynamic Resource
188189
--------------------------

0 commit comments

Comments
 (0)
0