release#
This method releases the lock, allowing other workers to acquire it. The return value is True
if the lock has been released, otherwise it is False
.
You should never release a lock unless you are the owner
If a worker calls 'release' on a lock it did not acquire, the lock is released, and is made available again, even if another worker is holding it. Make sure you own the lock.
Definition#
1 2 3 |
|
Examples#
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|