diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2024-12-27 13:58:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-27 13:58:35 (GMT) |
commit | 0b5f1fae573a2c658eb000433ad7b87e9c40c697 (patch) | |
tree | a102c157ef12e906a081f20e5f66ab577f96ce49 /Lib | |
parent | 08a0728d6c32986d35edb26872b4512a71ae60f3 (diff) | |
download | cpython-0b5f1fae573a2c658eb000433ad7b87e9c40c697.zip cpython-0b5f1fae573a2c658eb000433ad7b87e9c40c697.tar.gz cpython-0b5f1fae573a2c658eb000433ad7b87e9c40c697.tar.bz2 |
Mention loop_factory argument in docstring for asyncio.run() (#128288)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/runners.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncio/runners.py b/Lib/asyncio/runners.py index b9adf29..14397b4 100644 --- a/Lib/asyncio/runners.py +++ b/Lib/asyncio/runners.py @@ -177,6 +177,7 @@ def run(main, *, debug=None, loop_factory=None): running in the same thread. 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. It should be used as a main entry point for asyncio programs, and should |