[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

Mark Dickinson report at bugs.python.org
Mon Nov 8 04:26:24 EST 2021


Mark Dickinson <dickinsm at gmail.com> added the comment:

> previously one could write .submit(function_name, *args, **kwargs)
> but now one should write 
> .submit(function_name, name_of_thread, *args, **kwargs)
> name_of_thread can be None

This approach can't work, I'm afraid: it would be a backwards-incompatible change to the `submit` method signature, and would break many existing uses of submit.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45689>
_______________________________________


More information about the Python-bugs-list mailing list