cloud-oak/ProgressBars.jl

aync support

Closed this issue · 2 comments

hi

thanks for porting this over to Julia, its awesome.

any plans to support asyncio, like it supports in Python?

https://tqdm.github.io/docs/asyncio/

thanks!

khdlr commented

Hi Roh-codeur,

I'm not sure what exactly you would like to achieve. Right now, ProgressBars already supports basic multithreading (i.e. parallel iterators can access the wrapped iterable and printing is only done after acquiring a mutex). This allows the use of e.g. Threads.@threads for:

julia> a = []
       Threads.@threads for i in ProgressBar(1:1000)
         # do stuff in parallel
       end

Does this cover your use case or what else would you like to do with the library that can't currently be done? Do you have an example for a desired API / small example script?

Cheers,
Konrad

khdlr commented

Closing this due to inactivity for 2 months. Feel free to reopen.