summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-eventloop.rst
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-09-18 03:58:00 (GMT)
committerGitHub <noreply@github.com>2018-09-18 03:58:00 (GMT)
commitac94e38d076aebc56c2ff96a249b5e40f32633ea (patch)
tree7d4d9b74ad684868ebf731f051a9177c438440d7 /Doc/library/asyncio-eventloop.rst
parentdbdee0073cf0b88fe541980ace1f650900f455cc (diff)
downloadcpython-ac94e38d076aebc56c2ff96a249b5e40f32633ea.zip
cpython-ac94e38d076aebc56c2ff96a249b5e40f32633ea.tar.gz
cpython-ac94e38d076aebc56c2ff96a249b5e40f32633ea.tar.bz2
bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r--Doc/library/asyncio-eventloop.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index 0320d79..20d18c0 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -152,8 +152,12 @@ Running and stopping the loop
close with an :meth:`~agen.aclose()` call. After calling this method,
the event loop will issue a warning if a new asynchronous generator
is iterated. This should be used to reliably finalize all scheduled
- asynchronous generators, e.g.::
+ asynchronous generators.
+ Note that there is no need to call this function when
+ :func:`asyncio.run` is used.
+
+ Example::
try:
loop.run_forever()