Skip to content

Commit 39f4add

Browse files
miss-islingtonaiskkumaraditya303
authored
[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 facf986) Co-authored-by: AN Long <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent c1891e2 commit 39f4add

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/asyncio-eventloop.rst

+3
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,9 @@ Executing code in thread or process pools
12621262

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

12661269
Example::
12671270

0 commit comments

Comments
 (0)