Future

If you simply want to run tasks in a non-blocking way and need a way to handle the results when they finish, Scala provides you with Futures, for example, if you want to make multiple web service calls in a parallel fashion and work with the results after the web service handles all these calls. An example of using Future is provided in the following section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.61.152