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:
Peter Bierma 2024-09-26 01:11:17 -04:00 committed by GitHub
parent d9296529eb
commit de929f353c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 99 additions and 65 deletions

View file

@ -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]