Futures and Promises

Futures and Promises: Functional Way of Concurrency

Reading Time: 3 minutes So, from the heading, you must be wondering that what is so special about Futures and Promises and why we are calling it the functional way of concurrency. Well, you all must be aware of the problems that are associated with concurrent programming whether it’s debugging a multithreaded program or shared state concurrency and that’s where Futures and Promises help you so that you don’t Continue Reading

Rust’s Future: Internal Execution

Reading Time: 4 minutes As you all know Rust Programming has Futures which helps to make our code Asynchronous. Rust’s Futures are analogous to Promises.This article mainly pertains to the internal working of the Future and we’ll also understand the structure of the Future like how it is defined and how it will execute when it comes into the action. Future: In a Nutshell Future is trait in Rust Continue Reading

A tour to the Scala Futures

Reading Time: 6 minutes While executing long computations, performance is something that’s always being the concern. Luckily, Futures come to our rescue. A Future gives you a simple way to run an algorithm concurrently. Futures are the standard mechanism for writing multithreaded code in Scala. Whenever we create a new Future operation, Scala spawns a new thread to run that Future’s code, and after completion, it executes any provided Continue Reading