asyncio doc: document StreamWriter.drain()

This commit is contained in:
Victor Stinner 2014-01-24 18:47:26 +01:00
parent 8c462c5a80
commit 62f8eccdbf

View File

@ -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()