checkSleigh               package:nws               R Documentation

_s_l_e_i_g_h_P_e_n_d_i_n_g _C_l_a_s_s _M_e_t_h_o_d

_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, .Object.

_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, i.e. 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)

