summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2018-01-27 19:22:47 (GMT)
committerGitHub <noreply@github.com>2018-01-27 19:22:47 (GMT)
commit7c684073f951dd891021676ecfd86ffc18b8895e (patch)
treeb19f8254e8c3f3ac516b922eda7b985edbfebf70 /Lib/asyncio/events.py
parentf13f12d8daa587b5fcc66fe3ed1090a5dadab289 (diff)
downloadcpython-7c684073f951dd891021676ecfd86ffc18b8895e.zip
cpython-7c684073f951dd891021676ecfd86ffc18b8895e.tar.gz
cpython-7c684073f951dd891021676ecfd86ffc18b8895e.tar.bz2
bpo-32622: Implement loop.sendfile() (#5271)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index 7aa3de0..bdefcf6 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -354,6 +354,14 @@ class AbstractEventLoop:
"""
raise NotImplementedError
+ async def sendfile(self, transport, file, offset=0, count=None,
+ *, fallback=True):
+ """Send a file through a transport.
+
+ Return an amount of sent bytes.
+ """
+ raise NotImplementedError
+
async def start_tls(self, transport, protocol, sslcontext, *,
server_side=False,
server_hostname=None,