summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authortwisteroid ambassador <twisteroidambassador@users.noreply.github.com>2019-05-05 11:14:35 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-05-05 11:14:35 (GMT)
commit88f07a804a0adc0b6ee87687b59d8416113c7331 (patch)
treee7fcadefb5269eb9b03c5c5946a31387ab7839e7 /Lib/asyncio/events.py
parentc4d92c8ada7ecfc479ebb1dd4a819c9202155970 (diff)
downloadcpython-88f07a804a0adc0b6ee87687b59d8416113c7331.zip
cpython-88f07a804a0adc0b6ee87687b59d8416113c7331.tar.gz
cpython-88f07a804a0adc0b6ee87687b59d8416113c7331.tar.bz2
bpo-33530: Implement Happy Eyeballs in asyncio, v2 (GH-7237)
Added two keyword arguments, `delay` and `interleave`, to `BaseEventLoop.create_connection`. Happy eyeballs is activated if `delay` is specified. We now have documentation for the new arguments. `staggered_race()` is in its own module, but not exported to the main asyncio package. https://bugs.python.org/issue33530
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 163b868..9a92351 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -298,7 +298,8 @@ class AbstractEventLoop:
*, ssl=None, family=0, proto=0,
flags=0, sock=None, local_addr=None,
server_hostname=None,
- ssl_handshake_timeout=None):
+ ssl_handshake_timeout=None,
+ happy_eyeballs_delay=None, interleave=None):
raise NotImplementedError
async def create_server(