]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120866: Document behavior change of asyncio.Server.wait_closed() since 3.12 (...
authorKumar Aditya <kumaraditya@python.org>
Sat, 25 Jul 2026 06:40:22 +0000 (12:10 +0530)
committerGitHub <noreply@github.com>
Sat, 25 Jul 2026 06:40:22 +0000 (06:40 +0000)
Doc/library/asyncio-eventloop.rst

index 6b5244abe427cd382bd4fc14c66828e9a84a4845..d24c8420ef8920c5a64ffede6f9cdc84b61a004c 100644 (file)
@@ -1873,6 +1873,12 @@ Do not instantiate the :class:`Server` class directly.
       Wait until the :meth:`close` method completes and all active
       connections have finished.
 
+      .. versionchanged:: 3.12
+         ``wait_closed()`` now waits until the server is closed and
+         all active connections have finished.  Previously, it returned
+         immediately if the server was already closed, even if
+         connections were still active.
+
    .. attribute:: sockets
 
       List of socket-like objects, ``asyncio.trsock.TransportSocket``, which