allow access to loop vars
This commit is contained in:
parent
33c6781c99
commit
b19e31714d
@ -10,11 +10,11 @@ macro cb(ex, t, f)
|
||||
:(let
|
||||
t0 = time_ns()
|
||||
dt = $t*1e9
|
||||
f = () -> $f
|
||||
@progress $(Expr(:for, cond, quote
|
||||
t = time_ns()
|
||||
if t - t0 > dt
|
||||
t0 = t
|
||||
f = () -> $f
|
||||
f()
|
||||
end
|
||||
$body
|
||||
|
Loading…
Reference in New Issue
Block a user