From 69349cb11f3cdc7b65ef2a062c043a20a47549fc Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Fri, 27 Dec 2024 13:56:08 +0100 Subject: [PATCH] Mention loop_factory argument in docstring for asyncio.run() --- Lib/asyncio/runners.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/asyncio/runners.py b/Lib/asyncio/runners.py index b9adf291d4817f..14397b4ad0c732 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