Go backward to dist[start] : Create a TaskGo up to 3.2 Basic Model Go forward to dist[select] : Wait for Some Task Result |
dist[wait]
: Wait for a Task Resultresult := dist[wait](task)
This call suspends the current execution until task has completed and then returns its result. While the current execution is suspended, other tasks can be executed by the corresponding Maple kernel.
> t := dist[start](int, x^n, x): > r := 1 + dist[wait](t); (n + 1) x r := 1 + -------- n + 1