Open Moelf opened 3 days ago
We need to recursively look for our special macros. Probably using MacroTools is easiest.
We only cared about “top-level” (relative to @tasks
) because we started with @set
and @local
and those only make sense there. Supporting @one_by_one
in (potentially nested) if(s) is harder than I thought. It doesn’t fit into the scheme we currently use to find and replace those macros.
As a workaround you can use:
julia> @tasks for i in 1:10
if true
lock(lck) do
println(i)
sleep(0.1)
end
end
end
3
10
7
9
5
6
4
8
1
2
Currently the
@tasks
macro needs to see@one_by_one
directly, but logically speaking this is not necessary