From: Victor Stinner Date: Fri, 24 Jan 2014 17:47:26 +0000 (+0100) Subject: asyncio doc: document StreamWriter.drain() X-Git-Tag: v3.4.0b3~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62f8eccdbf24d420fbfee538ed14a3b12684d7f1;p=python asyncio doc: document StreamWriter.drain() --- 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()