Skip to content

Commit 615817e

Browse files
authored
Update lockable_trait.rst
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);
1 parent 1cd1950 commit 615817e

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('lockname', true);
3434

3535
// ...
3636

0 commit comments

Comments
 (0)