rsalmei / alive-progress

A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
MIT License
5.53k stars 206 forks source link

Progress Bar with executor.map() #127

Closed shivanraptor closed 2 years ago

shivanraptor commented 2 years ago

Similar to #124 , my logic relies on executor.map() instead of executor.submit. How can I apply the Alive Progress Bar in my logic?

with Manager() as manager:
    file_list = manager.dict()
    with alive_bar(total) as bar, ProcessPoolExecutor() as executor:
        executor.map(time_consuming_function, [(jpg, file_list) for jpg in imgs])

Thanks.

rsalmei commented 2 years ago

Hello @shivanraptor

The best examples are in #75, and #125 lists them all. Going to close this one, as there is another open as you've seen.