Skip to content

Commit

Permalink
[3.12] Mention loop_factory argument in docstring for asyncio.run() (p…
Browse files Browse the repository at this point in the history
…ythonGH-128288) (python#128292)

Mention loop_factory argument in docstring for asyncio.run() (pythonGH-128288)
(cherry picked from commit 0b5f1fa)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
  • Loading branch information
miss-islington and asvetlov authored Dec 27, 2024
1 parent 82dbfbf commit 3a726be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/asyncio/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,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
Expand Down

0 comments on commit 3a726be

Please sign in to comment.