waitSleigh                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:

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

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

     ## S4 method for signature 'sleighPending':
     waitSleigh(.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 from
     the return value of  non-blocking eachElem or non-blocking
     eachWorker.

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

     'eachWorker', 'eachElem'

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

     ## Not run: 
     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)

