diff options
author | Sergey Kolesnikov <kolesnik-mipt@phystech.edu> | 2021-11-25 17:15:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 17:15:24 (GMT) |
commit | e0f8a3e9b96bbc2597f61be96993ef0c768a19fe (patch) | |
tree | bc27ff4c37d7194483c1fac97459000943bff0a7 | |
parent | 4dd82194f4a0e48a94191655e571b3aad1c4a22a (diff) | |
download | cpython-e0f8a3e9b96bbc2597f61be96993ef0c768a19fe.zip cpython-e0f8a3e9b96bbc2597f61be96993ef0c768a19fe.tar.gz cpython-e0f8a3e9b96bbc2597f61be96993ef0c768a19fe.tar.bz2 |
Add missing 'await writer.drain()' call to example (GH-29162)
Automerge-Triggered-By: GH:asvetlov
-rw-r--r-- | Doc/library/asyncio-stream.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 95a8e46..ecf178a 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -352,6 +352,7 @@ TCP echo client using the :func:`asyncio.open_connection` function:: print(f'Send: {message!r}') writer.write(message.encode()) + await writer.drain() data = await reader.read(100) print(f'Received: {data.decode()!r}') |