Skip to content

Commit c3a4240

Browse files
Merge pull request #11 from baggepinnen/patch-1
Make sendto accept range
2 parents 2812130 + 6f730cc commit c3a4240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ParallelDataTransfer.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module ParallelDataTransfer
2929
end
3030
end
3131

32-
function passobj(src::Int, target::Vector{Int}, nm::Symbol;
32+
function passobj(src::Int, target::AbstractVector{Int}, nm::Symbol;
3333
from_mod=Main, to_mod=Main)
3434
r = RemoteChannel(src)
3535
@spawnat(src, put!(r, getfield(from_mod, nm)))
@@ -58,7 +58,7 @@ module ParallelDataTransfer
5858
end
5959
end
6060

61-
function sendto(ps::Vector{Int}; args...)
61+
function sendto(ps::AbstractVector{Int}; args...)
6262
for p in ps
6363
sendto(p; args...)
6464
end

0 commit comments

Comments
 (0)