Skip to content

Commit e8a93c7

Browse files
[3.14] gh-120866: Document behavior change of asyncio.Server.wait_closed() since 3.12 (GH-154676) (#154678)
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 e76d333 commit e8a93c7

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
@@ -1884,6 +1884,12 @@ Do not instantiate the :class:`Server` class directly.
18841884
Wait until the :meth:`close` method completes and all active
18851885
connections have finished.
18861886

1887+
.. versionchanged:: 3.12
1888+
``wait_closed()`` now waits until the server is closed and
1889+
all active connections have finished. Previously, it returned
1890+
immediately if the server was already closed, even if
1891+
connections were still active.
1892+
18871893
.. attribute:: sockets
18881894

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

0 commit comments

Comments
 (0)