Skip to content

Commit a869d2d

Browse files
committed
minor #8076 Update lockable_trait.rst for blocking lock (lpussacq, javiereguiluz)
This PR was merged into the 3.2 branch. Discussion ---------- Update lockable_trait.rst for blocking lock The method lock() of LockableTrait accept 2 parameters, the first one is the name used to create the lock file, and the second is a value indicating if we should wait until the lock is release. Thus, the line $this->lock(true); should be $this->lock('someRandomLockName', true); Commits ------- 7c99b93 Use "null" so the lock is named automatically 615817e Update lockable_trait.rst
2 parents b39ecaa + 7c99b93 commit a869d2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/lockable_trait.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ that adds two convenient methods to lock and release commands::
3030
}
3131

3232
// If you prefer to wait until the lock is released, use this:
33-
// $this->lock(true);
33+
// $this->lock(null, true);
3434

3535
// ...
3636

0 commit comments

Comments
 (0)