-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncmap #96
Comments
If the tasks are executing asynchronously, there is nothing to keep one task from starting to print while another is in the middle of printing. See #109 for a possible solution. |
A workaround without prog = Progress(100)
ch = Channel{Nothing}(Inf)
task = @async begin
for _ in ch
next!(prog)
end
finished!(prog)
end
asyncmap(x->(sleep(0.2); put!(ch, nothing)),1:100; ntasks=3)
close(ch) |
@yiyuezhuo , this seems to be working. However, do you have any idea why it takes a bit of time (hangs) after the progress bar has reached 100% to close the channel? |
fixed by #322 with |
progressmeter.jl is awesome! works great for map, but sadly not asyncmap:
any idea why it would print multiple progress bars for the asyncmap with multiple tasks, but not for that with a single task, or with map? thanks.
The text was updated successfully, but these errors were encountered: