用法一
remotecall_fetch(f, id::Integer, args...; kwargs...)
在一条消息中执行fetch(remotecall(...))。关键字参数(如果有)将传递给 f 。任何远程异常都会在  中捕获并抛出。RemoteException 
另请参见   和 fetch   。remotecall 
例子
$ julia -p 2
julia> remotecall_fetch(sqrt, 2, 4)
2.0
julia> remotecall_fetch(sqrt, 2, -4)
ERROR: On worker 2:
DomainError with -4.0:
sqrt will only return a complex result if called with a complex argument. Try sqrt(Complex(x)).
...用法二
remotecall_fetch(f, pool::AbstractWorkerPool, args...; kwargs...) -> result
remotecall_fetch(f, pid, ....) 的   变体。等待并从WorkerPool pool 获取一个空闲的worker,并对其执行remotecall_fetch。
例子
$ julia -p 3
julia> wp = WorkerPool([2, 3]);
julia> A = rand(3000);
julia> remotecall_fetch(maximum, wp, A)
0.9995177101692958相关用法
- Julia Distributed.remotecall_wait方法用法及代码示例
 - Julia Distributed.remotecall方法用法及代码示例
 - Julia Distributed.rmprocs用法及代码示例
 - Julia Distributed.procs方法用法及代码示例
 - Julia Distributed.@spawnat用法及代码示例
 - Julia Distributed.default_worker_pool用法及代码示例
 - Julia Distributed.@fetch用法及代码示例
 - Julia Distributed.myid用法及代码示例
 - Julia Distributed.nprocs用法及代码示例
 - Julia Distributed.@fetchfrom用法及代码示例
 - Julia Distributed.workers用法及代码示例
 - Julia Distributed.nworkers用法及代码示例
 - Julia Distributed.CachingPool用法及代码示例
 - Julia Distributed.WorkerPool用法及代码示例
 - Julia Distributed.addprocs用法及代码示例
 - Julia Dims()用法及代码示例
 - Julia Dict用法及代码示例
 - Julia Dates.week用法及代码示例
 - Julia Dates.CompoundPeriod方法用法及代码示例
 - Julia Dates.monthname用法及代码示例
 - Julia Dates.Time方法用法及代码示例
 - Julia Dates.firstdayofmonth用法及代码示例
 - Julia Dates.lastdayofmonth用法及代码示例
 - Julia Dates.lastdayofweek用法及代码示例
 - Julia Dates.lastdayofyear用法及代码示例
 
注:本文由纯净天空筛选整理自julialang.org 大神的英文原创作品 Distributed.remotecall_fetch — Method。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
