Displaying 1 result from an estimated 1 matches for "82410d0f564a7a24251e9e747e210b39".
2016 Aug 30
1
mcparallel / mccollect
...allel(f(10), name = "jobname1")$pid)
jobs = c(jobs, mcparallel(f(3), name = "jobname2")$pid)
for (i in 1:13) {
message("\ni = ", i)
print(mccollect(jobs, wait = FALSE, timeout = 0))
Sys.sleep(1)
}
I've created a small patch
(<https://gist.github.com/mllg/82410d0f564a7a24251e9e747e210b39>)
which applies the same mechanism to name the results for wait=FALSE as
it was already implemented for wait=TRUE. I think the documentation is
already rather describing the behavior after my patch than before my
patch.
A note on the need to collect results twice might prove useful for the
futur...