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 b5d1f0a commit d41e9e0Copy full SHA for d41e9e0
Lib/asyncio/locks.py
@@ -224,6 +224,9 @@ def _wake_up_first(self):
224
except StopIteration:
225
return
226
227
+ # .done() necessarily means that a waiter will wake up later on and
228
+ # either take the lock, or, if it was cancelled and lock wasn't
229
+ # taken already, will hit this again and wake up a new waiter.
230
if not fut.done():
231
fut.set_result(True)
232
0 commit comments