mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-124309: Modernize the staggered_race
implementation to support eager task factories (#124390)
Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Carol Willing <carolcode@willingconsulting.com> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
d9296529eb
commit
de929f353c
5 changed files with 99 additions and 65 deletions
|
@ -1144,7 +1144,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
(functools.partial(self._connect_sock,
|
||||
exceptions, addrinfo, laddr_infos)
|
||||
for addrinfo in infos),
|
||||
happy_eyeballs_delay, loop=self)
|
||||
happy_eyeballs_delay)
|
||||
|
||||
if sock is None:
|
||||
exceptions = [exc for sub in exceptions for exc in sub]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue