mirror of
https://github.com/python/cpython.git
synced 2026-05-24 13:23:00 -04:00
[3.13] gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335) (#121526)
gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335)
(cherry picked from commit facf9862da)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
committed by
GitHub
parent
c1891e225e
commit
39f4add7a3
@@ -1262,6 +1262,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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user