diff options
author | Elvis Pranskevichus <elvis@magic.io> | 2018-07-30 10:42:43 (GMT) |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-07-30 10:42:43 (GMT) |
commit | 22d25085db2590932b3664ca32ab82c08f2eb2db (patch) | |
tree | d173242dc2c035baf83bf36eb26d992618c1e796 /Misc | |
parent | 4e11c461ed39085b8495a35c9367b46d8a0d306d (diff) | |
download | cpython-22d25085db2590932b3664ca32ab82c08f2eb2db.zip cpython-22d25085db2590932b3664ca32ab82c08f2eb2db.tar.gz cpython-22d25085db2590932b3664ca32ab82c08f2eb2db.tar.bz2 |
bpo-34075: Deprecate non-ThreadPoolExecutor in loop.set_default_executor() (GH-8533)
Various asyncio internals expect that the default executor is a
`ThreadPoolExecutor`, so deprecate passing anything else to
`loop.set_default_executor()`.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-07-28-11-49-21.bpo-34075.9u1bO-.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-07-28-11-49-21.bpo-34075.9u1bO-.rst b/Misc/NEWS.d/next/Library/2018-07-28-11-49-21.bpo-34075.9u1bO-.rst new file mode 100644 index 0000000..799e68e --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-07-28-11-49-21.bpo-34075.9u1bO-.rst @@ -0,0 +1,2 @@ +Deprecate passing non-ThreadPoolExecutor instances to +:meth:`AbstractEventLoop.set_default_executor`. |