mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
Add missing 'await writer.drain()' call to example (GH-29162)
Automerge-Triggered-By: GH:asvetlov
This commit is contained in:
parent
4dd82194f4
commit
e0f8a3e9b9
@ -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}')
|
||||
|
Loading…
Reference in New Issue
Block a user