previous up next
Go backward to WaitD: Wait for the Result of a Task
Go up to 3.2 Basic Commands
Go forward to AllD: Execute a Command on All Kernels
RISC-Linz logo

SelectD: Wait for Some Result from a List of Tasks

selector=SelectD[tasklist]

This call blocks the current execution, until some task from tasklist is finished and its result is available. It returns a selector, i.e., a list {index, result}, where index is the position of the task in tasklist, and result is the corresponding result.

In[3]:=l={StartD["Integrate[x^n,x]"],StartD["Integrate[x^n,n]"]};
In[4]:=s=SelectD[l];
In[5]:=t=s[[1]]
Out[5]=1
In[6]:=r=s[[2]]
       x^(1 + n)
Out[6]=---------
         1 + n  

Maintained by: Cleo Pau
Last Modification: July 5, 2000

previous up next