Skip to content

Commit

Permalink
Merge pull request #11 from baggepinnen/patch-1
Browse files Browse the repository at this point in the history
Make sendto accept range
  • Loading branch information
ChrisRackauckas authored Feb 14, 2018
2 parents 2812130 + 6f730cc commit c3a4240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ParallelDataTransfer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module ParallelDataTransfer
end
end

function passobj(src::Int, target::Vector{Int}, nm::Symbol;
function passobj(src::Int, target::AbstractVector{Int}, nm::Symbol;
from_mod=Main, to_mod=Main)
r = RemoteChannel(src)
@spawnat(src, put!(r, getfield(from_mod, nm)))
Expand Down Expand Up @@ -58,7 +58,7 @@ module ParallelDataTransfer
end
end

function sendto(ps::Vector{Int}; args...)
function sendto(ps::AbstractVector{Int}; args...)
for p in ps
sendto(p; args...)
end
Expand Down

0 comments on commit c3a4240

Please sign in to comment.