Skip to content

Commit 5fd52c3

Browse files
[3.13] gh-120866: Document behavior change of asyncio.Server.wait_closed() since 3.12 (GH-154676) (#154679)
gh-120866: Document behavior change of asyncio.Server.wait_closed() since 3.12 (GH-154676) (cherry picked from commit 222a8bf) Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent de9dafa commit 5fd52c3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,6 +1861,12 @@ Do not instantiate the :class:`Server` class directly.
18611861
Wait until the :meth:`close` method completes and all active
18621862
connections have finished.
18631863

1864+
.. versionchanged:: 3.12
1865+
``wait_closed()`` now waits until the server is closed and
1866+
all active connections have finished. Previously, it returned
1867+
immediately if the server was already closed, even if
1868+
connections were still active.
1869+
18641870
.. attribute:: sockets
18651871

18661872
List of socket-like objects, ``asyncio.trsock.TransportSocket``, which

0 commit comments

Comments
 (0)