You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a dup of issues related to creating new bindings for each iteration of a for loop. I'm also hitting this since the changes to let mean that my Bloom filter code is now broken.
Defined outside of loops:
julia> t = Task(() -> produce(1))
julia> t2 = Task(() -> produce(2))
julia> consume(t)
1
julia> consume(t2)
2
Defined within a loop:
julia> x = {}
julia> for i = 1:10 push!(x, Task(() -> produce(i))) end
julia> x
10-element Any Array:
Task
Task
Task
Task
Task
Task
Task
Task
Task
Task
julia> consume(x[1])
10
julia> consume(x[2])
10
julia> consume(x[3])
10
julia> consume(x[4])
10
julia> consume(x[5])
...
The text was updated successfully, but these errors were encountered: