Name the TMonitor thread?
hgjazhgj opened this issue · comments
hgjazhgj commented
- I have marked all applicable categories:
- documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
- new feature request
- I have visited the source website, and in particular read the known issues
- I have searched through the issue tracker for duplicates
- I have mentioned version numbers, operating system and environment
When I debugged my own code, I found a thread with the default name Thread-%d
, this confused me and made me think that something was wrong with the component I had written
But finally I found it is the TMonitor thread in tqdm
I think it would be excellent to give TMonitor a name when initializing him!
(and more excellenter to show that he is a tqdm thread)
Just like this
class TMonitor(Thread):
def __init__(self, tqdm_cls, sleep_interval):
Thread.__init__(self, name='tqdm.TMonitor')
...