May 2017
Intermediate to advanced
414 pages
13h
English
In this recipe, we created futures of numbers from 1 to 10 and obtained a list of futures; thereafter, we reduced the futures using the Future.reduce method, which takes a sequence of futures and a function to reduce them all, as we usually do with lists.
After you run the preceding application, you will get the following output:
sum of numbers from 1 to 10 is 55
Read now
Unlock full access