Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2afdf3 commit e8259e0Copy full SHA for e8259e0
1 file changed
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