Skip to content

[3.12] gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335) #121525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/library/asyncio-eventloop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,9 @@ Executing code in thread or process pools

The *executor* argument should be an :class:`concurrent.futures.Executor`
instance. The default executor is used if *executor* is ``None``.
The default executor can be set by :meth:`loop.set_default_executor`,
otherwise, a :class:`concurrent.futures.ThreadPoolExecutor` will be
lazy-initialized and used by :func:`run_in_executor` if needed.

Example::

Expand Down
Loading