It's similar to your MultithreadQueue but you can also get results from the submitted functions and shutdown the pool. Check it out, it's been part of Python since version 3.2
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Cool Andrés! A very simple and understandable implementation of a thread pool.
You might be interest in the ThreadPoolExecutor.
It's similar to your
MultithreadQueue
but you can also get results from the submitted functions and shutdown the pool. Check it out, it's been part of Python since version 3.2