May 2017
Intermediate to advanced
414 pages
13h
English
In the preceding application, we are creating two futures that add integers, and we are using for-comprehensions to iterate over both the futures. Here, we are not blocking on individual futures. Instead, we are creating a final future out of them and waiting (blocking) on it for a result.
After you run the preceding application, the result will be as follows:
Future result is 100
Read now
Unlock full access