Skip to content

Commit e2e34da

Browse files
code review
1 parent 1d5c99d commit e2e34da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Lib/asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ async def create_connection(
11441144
(functools.partial(self._connect_sock,
11451145
exceptions, addrinfo, laddr_infos)
11461146
for addrinfo in infos),
1147-
happy_eyeballs_delay)
1147+
happy_eyeballs_delay, loop=self)
11481148

11491149
if sock is None:
11501150
exceptions = [exc for sub in exceptions for exc in sub]

Lib/asyncio/staggered.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ async def staggered_race(coro_fns, delay, *, loop=None):
4343
delay: amount of time, in seconds, between starting coroutines. If
4444
``None``, the coroutines will run sequentially.
4545
46+
loop: the event loop to use.
47+
48+
4649
Returns:
4750
tuple *(winner_result, winner_index, exceptions)* where
4851

0 commit comments

Comments
 (0)