Asynchronous Calls (3)
- Asynchronous calls may return a value.
- Example:
- int future = async myfunc@1 // start thread on node 1 ... // do some work locally
- int result = waiton {future} // wait for thread's result
- Thus the term "future" - it is a promise of a value some time in the future. waiton calls in that promise.
Notes:
No notes for slide 34