checkSleigh-methods: Number of Results Pending From Sleigh

Description Usage Arguments Details See Also Examples

Description

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

Usage

1
2
## S4 method for signature 'sleighPending'
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, that is, all results are generated, then 0 is returned.

See Also

eachWorker, eachElem

Examples

1
2
3
4
5
6
7
## Not run: 
eo = list(blocking=0)
s = sleigh()
sp = eachElem(s, function(x) {Sys.sleep(100); x}, list(1:10), eo=eo) 
checkSleigh(sp)  

## End(Not run)

nws documentation built on May 2, 2019, 8:51 a.m.