Cancel the call.
+Event loop examples
+===================
.. _asyncio-hello-world-callback:
-Example: Hello World (callback)
--------------------------------
+Hello World with a callback
+---------------------------
-Print ``Hello World`` every two seconds, using a callback::
+Print ``"Hello World"`` every two seconds using a callback scheduled by the
+:meth:`BaseEventLoop.call_soon` method::
import asyncio
.. seealso::
- :ref:`Hello World example using a coroutine <asyncio-hello-world-coroutine>`.
+ The :ref:`Hello World coroutine <asyncio-hello-world-coroutine>` example
+ uses a :ref:`coroutine <coroutine>`.
Example: Set signal handlers for SIGINT and SIGTERM
.. seealso::
- :ref:`Hello World example using a callback <asyncio-hello-world-callback>`.
-
+ The :ref:`Hello World with a callback <asyncio-hello-world-callback>`
+ example uses a callback scheduled by the :meth:`BaseEventLoop.call_soon`
+ method.
Example: Chain coroutines
^^^^^^^^^^^^^^^^^^^^^^^^^