mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio doc: document StreamWriter.drain()
This commit is contained in:
parent
8c462c5a80
commit
62f8eccdbf
1 changed files with 2 additions and 2 deletions
|
@ -126,9 +126,9 @@ StreamWriter
|
|||
|
||||
.. method:: drain()
|
||||
|
||||
This method has an unusual return value.
|
||||
Wait until the write buffer of the underlying transport is flushed.
|
||||
|
||||
The intended use is to write::
|
||||
This method has an unusual return value. The intended use is to write::
|
||||
|
||||
w.write(data)
|
||||
yield from w.drain()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue