Skip to content

Commit

Permalink
restore gather as async to fix tests; restore proper await in gather
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed Aug 17, 2024
1 parent bdb94fe commit cf028c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions asyncio/funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def remove(t):
pass


def gather(*aws, return_exceptions=False):
# CIRCUITPY-CHANGE: async
async def gather(*aws, return_exceptions=False):
# CIRCUITPY-CHANGE: doc
"""Run all *aws* awaitables concurrently. Any *aws* that are not tasks
are promoted to tasks.
Expand Down Expand Up @@ -153,7 +154,7 @@ def done(t, er):
if state > 0:
gather_task.data = _Remove
try:
yield
await core._never()
except core.CancelledError as er:
cancel_all = True
state = er
Expand Down

0 comments on commit cf028c6

Please sign in to comment.