summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/asyncio-stream.rst1
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}')