mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.13] Mention loop_factory argument in docstring for asyncio.run() (GH-128288) (#128291)
Mention loop_factory argument in docstring for asyncio.run() (GH-128288)
(cherry picked from commit 0b5f1fae57
)
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
This commit is contained in:
parent
bad6b7bfca
commit
aea2e03b27
1 changed files with 1 additions and 0 deletions
|
@ -168,6 +168,7 @@ def run(main, *, debug=None, loop_factory=None):
|
||||||
running in the same thread.
|
running in the same thread.
|
||||||
|
|
||||||
If debug is True, the event loop will be run in debug mode.
|
If debug is True, the event loop will be run in debug mode.
|
||||||
|
If loop_factory is passed, it is used for new event loop creation.
|
||||||
|
|
||||||
This function always creates a new event loop and closes it at the end.
|
This function always creates a new event loop and closes it at the end.
|
||||||
It should be used as a main entry point for asyncio programs, and should
|
It should be used as a main entry point for asyncio programs, and should
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue