diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2018-01-24 22:30:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-24 22:30:30 (GMT) |
commit | fe133aad52222949db7309c26c58b066c22e714e (patch) | |
tree | 7da8d7039d78df7e4fd6cad8f88159d11cd01fea /Doc | |
parent | 04af5b1ba9eb546a29735fac6cb5298159069b53 (diff) | |
download | cpython-fe133aad52222949db7309c26c58b066c22e714e.zip cpython-fe133aad52222949db7309c26c58b066c22e714e.tar.gz cpython-fe133aad52222949db7309c26c58b066c22e714e.tar.bz2 |
bpo-32391: Implement StreamWriter.wait_closed() (#5281)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-stream.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 6d5cbbc..099b59e 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -201,6 +201,21 @@ StreamWriter Close the transport: see :meth:`BaseTransport.close`. + .. method:: is_closing() + + Return ``True`` if the writer is closing or is closed. + + .. versionadded:: 3.7 + + .. coroutinemethod:: wait_closed() + + Wait until the writer is closed. + + Should be called after :meth:`close` to wait until the underlying + connection (and the associated transport/protocol pair) is closed. + + .. versionadded:: 3.7 + .. coroutinemethod:: drain() Let the write buffer of the underlying transport a chance to be flushed. |