We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5d47c6 commit 69bdba4Copy full SHA for 69bdba4
components/lock.rst
@@ -62,6 +62,13 @@ method can be safely called repeatedly, even if the lock is already acquired.
62
to be used by several services, they should share the same ``Lock`` instance
63
returned by the ``Factory::createLock`` method.
64
65
+.. tip::
66
+ While it's recommended to release the ``Lock`` as soon as it is no longer
67
+ required, the ``Lock`` will automatically be ``released`` on instance
68
+ destruction. In some case, it can be usefull to lock a resource across several
69
+ requests. To disable the automatic release behavior, set the third argument
70
+ of the ``createLock()`` method to ``false``.
71
+
72
Blocking Locks
73
--------------
74
0 commit comments