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 |
![]() |
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