Learn R Programming

nws (version 1.2.3)

checkSleigh: sleighPending Class Method

Description

Return the number of results yet to be generated for the pending sleigh job, .Object.

Usage

checkSleigh(.Object)

Arguments

.Object
a sleighPending class object

Details

The sleighPending class object, .Object, is usually obtained through non-blocking eachElem or non-blocking eachWorker. If the pending job is finished, i.e. results are generated, then 0 is returned.

See Also

eachWorker, eachElem

Examples

Run this code
eo = list(blocking=0)
s = sleigh()
sp = eachElem(s, function(x) {Sys.sleep(100); x}, list(1:10), eo=eo) 
checkSleigh(sp)

Run the code above in your browser using DataLab