checkSleigh               package:nws               R Documentation

_N_u_m_b_e_r _o_f _R_e_s_u_l_t_s _P_e_n_d_i_n_g _F_r_o_m _S_l_e_i_g_h

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     ## S4 method for signature 'sleighPending':
     checkSleigh(.Object)

_A_r_g_u_m_e_n_t_s:

 .Object: a 'sleighPending' class object

_D_e_t_a_i_l_s:

     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.

_S_e_e _A_l_s_o:

     'eachWorker', 'eachElem'

_E_x_a_m_p_l_e_s:

     ## 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)

