Skip to content

Commit

Permalink
Make at-withprogress work with re-entrant functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Oct 18, 2019
1 parent d6eec46 commit 4efea27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProgressLogging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ function _withprogress(kwarg, ex)
end
name = kwarg.args[2]

@gensym progress_id name_var
@gensym name_var
m = @__MODULE__
quote
let $_id_name = $(QuoteNode(progress_id)),
let $_id_name = gensym(:progress_id),
$name_var = $name
$m.@logprogress $name_var progress = NaN
try
Expand Down

0 comments on commit 4efea27

Please sign in to comment.