waitSleigh                package:nws                R Documentation

_W_a_i_t _f_o_r _R_e_s_u_l_t_s _f_r_o_m _S_l_e_i_g_h

_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.  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: 
     s = sleigh()
     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)

