swansonk14 / p_tqdm

Parallel processing with progress bars
MIT License
457 stars 44 forks source link

Expose the Pool object? #4

Closed s-ahuja closed 4 years ago

s-ahuja commented 5 years ago

this will allow to get pool object's details such as processid etc.

swansonk14 commented 4 years ago

This would require a bit of work since the underlying p_tqdm objects are iterators which don't provide easy access to the internal pool object. However, I'll see if it's possible to rewrite the p_tqdm objects as classes so that might it might be possible to access internals like the pool object.

swansonk14 commented 4 years ago

I think it's unlikely that I'll end up writing the code to expose the pool object, but if you want to give it a try, feel free to send a PR and I can take a look.