Unverified Kaydet (Commit) ac94e38d authored tarafından Yury Selivanov's avatar Yury Selivanov Kaydeden (comit) GitHub

bpo-33649: Note that asyncio.run() calls shutdown_asyncgens() (GH-9380)

üst dbdee007
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment