diff options
author | Yury Selivanov <yury@magic.io> | 2017-12-18 17:03:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 17:03:23 -0500 |
commit | d757aaf9dd767d13205bf9917e520ebf43e7f6e5 (patch) | |
tree | 2e0c92b2daf71cdf63c68a392e49aaa0a730daf7 /Lib/asyncio/transports.py | |
parent | 2d8f06382e7d5a759ca554110a699a397114824a (diff) | |
download | cpython-git-d757aaf9dd767d13205bf9917e520ebf43e7f6e5.tar.gz |
bpo-32356: idempotent pause_/resume_reading; new is_reading method. (#4914)
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r-- | Lib/asyncio/transports.py | 4 |
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. |