[3.12] gh-106882: Note that asyncio.Server is only publicly exposed on 3.11+ (GH-106901) (#106902)

gh-106882: Note that `asyncio.Server` is only publicly exposed on 3.11+ (GH-106901)

And later versions of 3.10, 3.9
(cherry picked from commit 1e1f4e91a9)

Co-authored-by: Jack Nelson <jack@jacknelson.xyz>
This commit is contained in:
Miss Islington (bot) 2023-07-19 13:03:56 -07:00 committed by GitHub
parent b1c50b80a6
commit c16cf9b6e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1593,6 +1593,9 @@ Do not instantiate the :class:`Server` class directly.
.. versionchanged:: 3.7 .. versionchanged:: 3.7
Server object is an asynchronous context manager since Python 3.7. Server object is an asynchronous context manager since Python 3.7.
.. versionchanged:: 3.11
This class was exposed publicly as ``asyncio.Server`` in Python 3.9.11, 3.10.3 and 3.11.
.. method:: close() .. method:: close()
Stop serving: close listening sockets and set the :attr:`sockets` Stop serving: close listening sockets and set the :attr:`sockets`