← 输入框|bugs.python.org|刷新

➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 aeros, asvetlov, lukasz.langa, vstinner, yselivanov
日期 2019-09-09.09:56:33
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1568022993.9.0.428338847442.issue34037@roundup.psfhosted.org>
In-reply-to
内容
"shutdown_threadpool()" name

What do you think of the "shutdown_default_executor()" name?

The default executor can be overriden by set_default_executor():

    def set_default_executor(self, executor):
        if not isinstance(executor, concurrent.futures.ThreadPoolExecutor):
            warnings.warn(
                'Using the default executor that is not an instance of '
                'ThreadPoolExecutor is deprecated and will be prohibited '
                'in Python 3.9',
                DeprecationWarning, 2)
        self._default_executor = executor

The default executor should always be a thread pool, so "shutdown_threadpool()" name is also correct. I have no strong preference.
历史
日期 用户 动作 参数
2019-09-09 09:56:33vstinner修改recipients: + vstinner, asvetlov, lukasz.langa, yselivanov, aeros
2019-09-09 09:56:33vstinner修改messageid: <1568022993.9.0.428338847442.issue34037@roundup.psfhosted.org>
2019-09-09 09:56:33vstinner链接issue34037 messages
2019-09-09 09:56:33vstinner创建