Skip to content

Commit cf028c6

Browse files
committed
restore gather as async to fix tests; restore proper await in gather
1 parent bdb94fe commit cf028c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

asyncio/funcs.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def remove(t):
9292
pass
9393

9494

95-
def gather(*aws, return_exceptions=False):
95+
# CIRCUITPY-CHANGE: async
96+
async def gather(*aws, return_exceptions=False):
9697
# CIRCUITPY-CHANGE: doc
9798
"""Run all *aws* awaitables concurrently. Any *aws* that are not tasks
9899
are promoted to tasks.
@@ -153,7 +154,7 @@ def done(t, er):
153154
if state > 0:
154155
gather_task.data = _Remove
155156
try:
156-
yield
157+
await core._never()
157158
except core.CancelledError as er:
158159
cancel_all = True
159160
state = er

0 commit comments

Comments
 (0)