We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db339ce commit 45ccf87Copy full SHA for 45ccf87
src/macros.jl
@@ -49,7 +49,7 @@ macro spawn(expr)
49
quote
50
local ref = spawn_somewhere($thunk)
51
if $(Expr(:islocal, var))
52
- push!($var, ref)
+ put!($var, ref)
53
end
54
ref
55
@@ -94,7 +94,7 @@ macro spawnat(p, expr)
94
95
local ref = $spawncall
96
97
98
99
100
@@ -346,7 +346,7 @@ macro distributed(args...)
346
return quote
347
local ref = pfor($(make_pfor_body(var, body)), $(esc(r)))
348
if $(Expr(:islocal, syncvar))
349
- push!($syncvar, ref)
+ put!($syncvar, ref)
350
351
352
0 commit comments