We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdb94fe commit cf028c6Copy full SHA for cf028c6
1 file changed
asyncio/funcs.py
@@ -92,7 +92,8 @@ def remove(t):
92
pass
93
94
95
-def gather(*aws, return_exceptions=False):
+# CIRCUITPY-CHANGE: async
96
+async def gather(*aws, return_exceptions=False):
97
# CIRCUITPY-CHANGE: doc
98
"""Run all *aws* awaitables concurrently. Any *aws* that are not tasks
99
are promoted to tasks.
@@ -153,7 +154,7 @@ def done(t, er):
153
154
if state > 0:
155
gather_task.data = _Remove
156
try:
- yield
157
+ await core._never()
158
except core.CancelledError as er:
159
cancel_all = True
160
state = er
0 commit comments