This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

WaitNext

WaitNext[{eid1, eid2, ...}]
waits until the first evaluation represented by any of the eidi finishes, then returns its result, the corresponding eidi, and the list of remaining eidk.
  • WaitNext[{eid1, eid2, ...}] returns a list {res, eid, eids}, where res is the result of the finished evaluation, eid is its EvaluationObject, and eids is the list of remaining evaluations.
  • The last element in the list produced by WaitNext is suitable for another call to WaitNext.
Submit a number of integer factorizations:
Wait until the fastest one is done:
Wait for the next one:
Finally, wait for all remaining ones:
Submit a number of integer factorizations:
In[1]:=
Click for copyable input
Out[1]=
Wait until the fastest one is done:
In[2]:=
Click for copyable input
Out[2]=
Wait for the next one:
In[3]:=
Click for copyable input
Out[3]=
Finally, wait for all remaining ones:
In[4]:=
Click for copyable input
Out[4]=
New in 7