Skip to content

Commit 76c874c

Browse files
gh-120866: Document behavior change of asyncio.Server.wait_closed() in 3.12
1 parent 6c026ad commit 76c874c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,11 @@ Do not instantiate the :class:`Server` class directly.
18731873
Wait until the :meth:`close` method completes and all active
18741874
connections have finished.
18751875

1876+
.. versionchanged:: 3.12
1877+
Prior to Python 3.12, ``wait_closed()`` returned immediately
1878+
if the server was already closed, even if connections were
1879+
still active.
1880+
18761881
.. attribute:: sockets
18771882

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

0 commit comments

Comments
 (0)