We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38882d9 commit 3ce1d00Copy full SHA for 3ce1d00
Doc/library/asyncio-runner.rst
@@ -75,7 +75,9 @@ Runner context manager
75
:ref:`asyncio-debug-mode` settings.
76
77
*loop_factory* could be used for overriding the loop creation.
78
- :func:`asyncio.new_event_loop` is used if ``None``.
+ It is the responsibility of the *loop_factory* to set the created loop as the
79
+ current one. By default :func:`asyncio.new_event_loop` is used and set as
80
+ current event loop with :func:`asyncio.set_event_loop` if *loop_factory* is ``None``.
81
82
Basically, :func:`asyncio.run()` example can be rewritten with the runner usage::
83
0 commit comments