asyncio: add a new "Develop with asyncio" section to the documentation

This commit is contained in:
Victor Stinner 2014-01-16 18:58:01 +01:00
parent 18cc3da508
commit db39a0da0c
3 changed files with 219 additions and 0 deletions

View file

@ -55,6 +55,14 @@ it running: call ``yield from coroutine`` from another coroutine
Coroutines (and tasks) can only run when the event loop is running.
.. decorator:: coroutine
Decorator to mark coroutines.
If the coroutine is not yielded from before it is destroyed, an error
message is logged. See :ref:`Detect coroutines never scheduled
<asyncio-coroutine-not-scheduled>`.
.. _asyncio-hello-world-coroutine: