summaryrefslogtreecommitdiff
path: root/Lib/asyncio/transports.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r--Lib/asyncio/transports.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 51f56737c6..233bbb53cb 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -44,6 +44,10 @@ class BaseTransport:
class ReadTransport(BaseTransport):
"""Interface for read-only transports."""
+ def is_reading(self):
+ """Return True if the transport is receiving."""
+ raise NotImplementedError
+
def pause_reading(self):
"""Pause the receiving end.