summaryrefslogtreecommitdiff
path: root/Doc/library/asyncio-stream.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-24 18:47:26 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-01-24 18:47:26 +0100
commit62f8eccdbf24d420fbfee538ed14a3b12684d7f1 (patch)
treefa68928344899f00f84a1be786861267e4dd30f6 /Doc/library/asyncio-stream.rst
parent8c462c5a8027737244cb6654462eb3725e885cc4 (diff)
downloadcpython-git-62f8eccdbf24d420fbfee538ed14a3b12684d7f1.tar.gz
asyncio doc: document StreamWriter.drain()
Diffstat (limited to 'Doc/library/asyncio-stream.rst')
-rw-r--r--Doc/library/asyncio-stream.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst
index f2a9f1268e..27aae32d0f 100644
--- a/Doc/library/asyncio-stream.rst
+++ b/Doc/library/asyncio-stream.rst
@@ -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()