Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 863c69c

Browse files
committed
Merge 3.4 (asyncio doc)
2 parents 4f5366e + 7eb1031 commit 863c69c

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -681,12 +681,12 @@ Handle
681681

682682

683683
Event loop examples
684-
===================
684+
-------------------
685685

686686
.. _asyncio-hello-world-callback:
687687

688688
Hello World with call_soon()
689-
----------------------------
689+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
690690

691691
Example using the :meth:`BaseEventLoop.call_soon` method to schedule a
692692
callback. The callback displays ``"Hello World"`` and then stops the event
@@ -716,7 +716,7 @@ loop::
716716
.. _asyncio-date-callback:
717717

718718
Display the current date with call_later()
719-
------------------------------------------
719+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
720720

721721
Example of callback displaying the current date every second. The callback uses
722722
the :meth:`BaseEventLoop.call_later` method to reschedule itself during 5
@@ -752,7 +752,7 @@ seconds, and then stops the event loop::
752752
.. _asyncio-watch-read-event:
753753

754754
Watch a file descriptor for read events
755-
---------------------------------------
755+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
756756

757757
Wait until a file descriptor received some data using the
758758
:meth:`BaseEventLoop.add_reader` method and then close the event loop::
@@ -801,7 +801,7 @@ Wait until a file descriptor received some data using the
801801

802802

803803
Set signal handlers for SIGINT and SIGTERM
804-
------------------------------------------
804+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
805805

806806
Register handlers for signals :py:data:`SIGINT` and :py:data:`SIGTERM` using
807807
the :meth:`BaseEventLoop.add_signal_handler` method::

Doc/library/asyncio-eventloops.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ Common limits of Windows event loops:
8787

8888
:class:`SelectorEventLoop` specific limits:
8989

90-
- :class:`~selectors.SelectSelector` is used but it only supports sockets
90+
- :class:`~selectors.SelectSelector` is used which only supports sockets
91+
and is limited to 512 sockets.
9192
- :meth:`~BaseEventLoop.add_reader` and :meth:`~BaseEventLoop.add_writer` only
9293
accept file descriptors of sockets
9394
- Pipes are not supported

0 commit comments

Comments
 (0)