[3.12] gh-124309: Modernize the staggered_race implementation to support e… (#124574)

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>
(cherry picked from commit de929f353c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Kumar Aditya 2024-09-26 11:09:46 +05:30 committed by GitHub
parent 48359c5c90
commit 2b54a4ebf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 192 additions and 72 deletions

View file

@ -1110,7 +1110,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]