diff options
author | Illia Volochii <illia.volochii@gmail.com> | 2021-07-01 14:46:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-01 14:46:49 (GMT) |
commit | ddd5f36971e2ffe20cc3f4b408425c847d168646 (patch) | |
tree | 19ac45289e1129ba41896aee92c54ecf27927216 /Doc/library/asyncio-eventloop.rst | |
parent | a1092f62492a3fcd6195bea94eccf8d5a300acb1 (diff) | |
download | cpython-ddd5f36971e2ffe20cc3f4b408425c847d168646.zip cpython-ddd5f36971e2ffe20cc3f4b408425c847d168646.tar.gz cpython-ddd5f36971e2ffe20cc3f4b408425c847d168646.tar.bz2 |
bpo-43234: Prohibit non-ThreadPoolExecutor in loop.set_default_executor (GH-24540)
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index 83ab736..f0f6ae6 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1132,16 +1132,12 @@ Executing code in thread or process pools .. method:: loop.set_default_executor(executor) Set *executor* as the default executor used by :meth:`run_in_executor`. - *executor* should be an instance of + *executor* must be an instance of :class:`~concurrent.futures.ThreadPoolExecutor`. - .. deprecated:: 3.8 - Using an executor that is not an instance of - :class:`~concurrent.futures.ThreadPoolExecutor` is deprecated and - will trigger an error in Python 3.9. - - *executor* must be an instance of - :class:`concurrent.futures.ThreadPoolExecutor`. + .. versionchanged:: 3.11 + *executor* must be an instance of + :class:`~concurrent.futures.ThreadPoolExecutor`. Error Handling API |