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 46ed90d commit 34f4f5eCopy full SHA for 34f4f5e
Doc/library/asyncio-sync.rst
@@ -66,6 +66,13 @@ Lock
66
This method waits until the lock is *unlocked*, sets it to
67
*locked* and returns ``True``.
68
69
+ When more than one coroutine is blocked in :meth:`acquire`
70
+ waiting for the lock to be unlocked, only one coroutine
71
+ eventually proceeds.
72
+
73
+ Acquiring a lock is *fair*: the coroutine that proceeds will be
74
+ the first coroutine that started waiting on the lock.
75
76
.. method:: release()
77
78
Release the lock.
0 commit comments