Skip to content

Commit

Permalink
[3.12] pythongh-106882: Note that asyncio.Server is only publicly e…
Browse files Browse the repository at this point in the history
…xposed on 3.11+ (pythonGH-106901) (python#106902)

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

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

Co-authored-by: Jack Nelson <[email protected]>
  • Loading branch information
miss-islington and jack60612 authored Jul 19, 2023
1 parent b1c50b8 commit c16cf9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,9 @@ Do not instantiate the :class:`Server` class directly.
.. versionchanged:: 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()

Stop serving: close listening sockets and set the :attr:`sockets`
Expand Down

0 comments on commit c16cf9b

Please sign in to comment.