Skip to content

Commit 6c62ef0

Browse files
committed
at-spawn: Don't capture args in variable
1 parent d5510e6 commit 6c62ef0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/thunk.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,9 @@ function _par(ex::Expr; lazy=true, recur=true, opts=())
312312
return :(Dagger.delayed($(esc(f)); $(opts...))($(_par.(args; lazy=lazy, recur=false)...)))
313313
else
314314
return quote
315-
args = ($(_par.(args; lazy=lazy, recur=false)...),)
316-
$spawn($(esc(f)), args...; $(opts...))
315+
let args = ($(_par.(args; lazy=lazy, recur=false)...),)
316+
$spawn($(esc(f)), args...; $(opts...))
317+
end
317318
end
318319
end
319320
else

0 commit comments

Comments
 (0)