Add missing 'await writer.drain()' call to example (GH-29162)

Automerge-Triggered-By: GH:asvetlov
This commit is contained in:
Sergey Kolesnikov 2021-11-25 20:15:24 +03:00 committed by GitHub
parent 4dd82194f4
commit e0f8a3e9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}')