mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue