mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
asyncio doc: move AbstractServer to the event loop page
Add also entries in the table of content for each synchronization primitive class.
This commit is contained in:
parent
c3bf14d1eb
commit
8c462c5a80
3 changed files with 43 additions and 16 deletions
|
@ -415,22 +415,6 @@ coroutine with ``yield from``. For example, the :meth:`StreamWriter.drain`
|
|||
coroutine can be used to wait until the write buffer is flushed.
|
||||
|
||||
|
||||
Server
|
||||
------
|
||||
|
||||
.. class:: AbstractServer
|
||||
|
||||
Abstract server returned by :func:`BaseEventLoop.create_server`.
|
||||
|
||||
.. method:: close()
|
||||
|
||||
Stop serving. This leaves existing connections open.
|
||||
|
||||
.. method:: wait_closed()
|
||||
|
||||
Coroutine to wait until service is closed.
|
||||
|
||||
|
||||
Protocol example: TCP echo server and client
|
||||
============================================
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue