Learn R Programming

nws (version 1.7.0.1)

waitSleigh: Wait for Results from Sleigh

Description

Wait and block for the results to be generated for the pending sleigh job. If the job has completed, then waitSleigh returns immediately with the generated results.

Usage

"waitSleigh"(.Object)

Arguments

.Object
a sleighPending class object

Details

The sleighPending class object, .Object, is usually obtained from the return value of non-blocking eachElem or non-blocking eachWorker.

See Also

eachWorker, eachElem

Examples

Run this code
## Not run: 
# s = sleigh()
# eo = list(blocking=0)
# sp = eachWorker(s, function() {Sys.sleep(100)}, eo=eo) 
# waitSleigh(sp)  # wait on workers. Each worker sleeps for 100 seconds
# ## End(Not run)

Run the code above in your browser using DataLab