Asynchronous execution
Consider the code given below in scala,which sleeps for 10 seconds and returns…
In parts 1 and 2 of this series, we understood Why promises were introduced…