summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/asyncio-stream.rst15
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.