Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add runner docs
  • Loading branch information
kumaraditya303 authored Aug 14, 2022
commit 320164b3b5aa589a93f55ac3690461947fa2a255
4 changes: 3 additions & 1 deletion Doc/library/asyncio-runner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ Runner context manager
:ref:`asyncio-debug-mode` settings.

*loop_factory* could be used for overriding the loop creation.
:func:`asyncio.new_event_loop` is used if ``None``.
It is the responsibility of the *loop_factory* to set the created loop as the
Comment thread
kumaraditya303 marked this conversation as resolved.
current one. By default :func:`asyncio.new_event_loop` is used and set as
current event loop with :func:`asyncio.set_event_loop` if *loop_factory* is ``None``.

Basically, :func:`asyncio.run()` example can be rewritten with the runner usage::

Expand Down