You need to specify the number of elements while creating the Channel
; otherwise, it assumes zero elements by default.
julia> buff = Channel(Threads.nthreads())
Channel{Any}(1) (empty)
julia> for _ in 1:Threads.nthreads()
put!(buff,zeros(3))
end
julia> buff
Channel{Any}(1) (1 item available)
julia> take!(buff)
3-element Vector{Float64}:
0.0
0.0
0.0