We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04ccb62 commit c15f5efCopy full SHA for c15f5ef
asyncio/event.py
@@ -62,7 +62,7 @@ async def wait(self):
62
self.waiting.push_head(core.cur_task)
63
# Set calling task's data to the event's queue so it can be removed if needed
64
core.cur_task.data = self.waiting
65
- await core.sleep(0)
+ yield
66
return True
67
68
asyncio/lock.py
@@ -69,7 +69,7 @@ async def acquire(self):
69
# Set calling task's data to the lock's queue so it can be removed if needed
70
71
try:
72
73
except core.CancelledError as er:
74
if self.state == core.cur_task:
75
# Cancelled while pending on resume, schedule next waiting Task
0 commit comments