previous up next
Go backward to StartD: Create a Task
Go up to 3.2 Basic Commands
Go forward to SelectD: Wait for Some Result from a List of Tasks
RISC-Linz logo

WaitD: Wait for the Result of a Task

result=WaitD[task]

This call blocks the current execution until the result of task is available and returns the result. As long as the execution is blocked, the kernel can execute other tasks assigned by the scheduler.

In[3]:=t=StartD[Integrate,x^n,x];
In[4]:=r=1+WaitD[t]
           x^(1 + n)
Out[4]=1 + ---------
             1 + n  

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

previous up next