diff options
Diffstat (limited to 'extmod/uasyncio/stream.py')
-rw-r--r-- | extmod/uasyncio/stream.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extmod/uasyncio/stream.py b/extmod/uasyncio/stream.py index 7803ac4bf..2a1efd1a1 100644 --- a/extmod/uasyncio/stream.py +++ b/extmod/uasyncio/stream.py @@ -53,6 +53,11 @@ class Stream: self.out_buf = b"" +# Stream can be used for both reading and writing to save code size +StreamReader = Stream +StreamWriter = Stream + + # Create a TCP stream connection to a remote host async def open_connection(host, port): from uerrno import EINPROGRESS |