summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-task.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/asyncio-task.rst')
-rw-r--r--Doc/library/asyncio-task.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index 6829233..1a23661 100644
--- a/Doc/library/asyncio-task.rst
+++ b/Doc/library/asyncio-task.rst
@@ -18,9 +18,9 @@ and Tasks.
Coroutines
==========
-Coroutines declared with async/await syntax is the preferred way of
-writing asyncio applications. For example, the following snippet
-of code (requires Python 3.7+) prints "hello", waits 1 second,
+:term:`Coroutines <coroutine>` declared with the async/await syntax is the
+preferred way of writing asyncio applications. For example, the following
+snippet of code (requires Python 3.7+) prints "hello", waits 1 second,
and then prints "world"::
>>> import asyncio
@@ -238,6 +238,10 @@ Running an asyncio Program
.. versionadded:: 3.7
+ .. note::
+ The source code for ``asyncio.run()`` can be found in
+ :source:`Lib/asyncio/runners.py`.
+
Creating Tasks
==============