Skip to content

Commit

Permalink
gh-106882: Note that asyncio.Server is only publicly exposed on 3.1…
Browse files Browse the repository at this point in the history
…1+ (#106901)

And later versions of 3.10, 3.9
  • Loading branch information
jack60612 authored Jul 19, 2023
1 parent c6c5665 commit 1e1f4e9
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 1e1f4e9

Please sign in to comment.