A=RemoteRef(()->Channel{Int64}(10), 1)

Works but 

Put!(A,1,1) gives

LoadError: MethodError: `put!` has no method matching put!(::Channel{Int64}, 
::Int64, ::Int64)
Closest candidates are:
  put!(::Channel{T}, ::Any)
  put!(!Matched::Base.RemoteValue, ::Any...)
  put!(!Matched::RemoteRef{T<:AbstractChannel}, ::Any...)
while loading In[15], in expression starting on line 1

 in put! at multi.jl:799
 in put_ref at multi.jl:800
 in call_on_owner at multi.jl:777
 in put! at multi.jl:801

I would also like to get the following to work also but get same errors:

type test
    a::Float64
end

B=RemoteRef(()->Channel{test}(10), 1)
Put!(B,test(0.1),1)

And

B=RemoteRef(()->Channel{Array{Float64,1}}(10), 1)
put!(B,rand(10),1)

Any advice appreciated


Reply via email to