mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: add a new "Develop with asyncio" section to the documentation
This commit is contained in:
parent
18cc3da508
commit
db39a0da0c
3 changed files with 219 additions and 0 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue