concurrent futures and threadpoolexecutor

First published:

Last Edited:

Number of edits:

In Python, when using the ThreadPoolExecutor of concurrent.futures, it is hard to know how many elements are waiting in the queue to be processed. The best I could gather is 1 :

executor._work_queue

That is the queue where the WorkItems are stored.

  • Can it be a good idea to create my own PoolExecutor?

  1. https://github.com/python/cpython/blob/b5789a7419655f66692fab463320048bd2290e81/Lib/concurrent/futures/thread.py#L187 

Aquiles Carattino
Aquiles Carattino
This note you are reading is part of my digital garden. Follow the links to learn more, and remember that these notes evolve over time. After all, this website is not a blog.
Subscribe to the newsletter

Get the weekly reflections of a curious mind

Backlinks

Nothing links here, how did you reach this page then?
© 2020 Aquiles Carattino
Privacy Policy
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.