Tag: futures

Scala Futures – Concurrency Interpreted!
Scala

Scala Futures – Concurrency Interpreted!

Think - Parallel , multi threaded, distributed, Asynchronous, non-blocking programming.first thing that comes to your mind for short-lived concurrent processes is “Scala Futures” .Future’s allow you to run values off main thread ,and handle values which are running in the background /yet to be executed by mapping them with callbacks .if you are from Java background , you might be aware of java.util.concurrent.Future yes?there are several challenges in using this,1- threads are always blocked while retrieving values.2- wait time for the completion of computation.3- get method is the only way to retrieve values.Weary andantagonistic way of writing concurrent code.we have Future’s in Scala(Better one’s)-scala.concurrent.Futurewith Scala Futures you can achi...