You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mutable struct Prog
N::Int@atomic count::IntendProg(N) =Prog(N, 0)
inc!(p::Prog) =@atomic p.count +=1macroinc(p)
quotelocal M =$inc!($p) # It seems to be important to separate this out from the `@logprogress` step since `@logprogress` can double-evaluate$ProgressLogging.@logprogress M /$p.N
end|> esc
end
and then
using OhMyThreads: tforeach
p =Prog(N)
@withprogresstforeach(1:N) do i
sleep(2)
@inc p
end
Would be nice to support logging progress increments, so that e.g. something like
works.
The text was updated successfully, but these errors were encountered: