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 ebd5251 commit e96a12aCopy full SHA for e96a12a
asyncio/lock.py
@@ -65,7 +65,7 @@ async def acquire(self):
65
# Set calling task's data to the lock's queue so it can be removed if needed
66
core.cur_task.data = self.waiting
67
try:
68
- yield
+ core.sleep(0)
69
except core.CancelledError as er:
70
if self.state == core.cur_task:
71
# Cancelled while pending on resume, schedule next waiting Task
0 commit comments