https://github.com/python/cpython/commit/c8677407ac5efb1aeb0df0be567b99fe8d8c83ce
commit: c8677407ac5efb1aeb0df0be567b99fe8d8c83ce
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-07-25T13:34:47+05:30
summary:

[3.15] gh-120866: Document behavior change of asyncio.Server.wait_closed() 
since 3.12 (GH-154676) (#154677)

gh-120866: Document behavior change of asyncio.Server.wait_closed() since 3.12 
(GH-154676)
(cherry picked from commit 222a8bf3259b6fae2132c9278aa9ecff68a99b2a)

Co-authored-by: Kumar Aditya <[email protected]>

files:
M Doc/library/asyncio-eventloop.rst

diff --git a/Doc/library/asyncio-eventloop.rst 
b/Doc/library/asyncio-eventloop.rst
index 1caecb1c143a23..d7dd2171de9a59 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -1884,6 +1884,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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to