Skip to main content

Oleg Shelajev: Monadic futures in Java 8: How to organize your data flow and avoid callback hell

Few people will argue that asynchronous computation is cool and useful. In fact, the whole reactive programming idea is based on asynchronous computations being possible. Well, there’s more than that, but the core idea is to allow data and events to flow through your system and do something with the results when they become available. So let’s look at an example of asynchronous function that everyone has seen and many have written themselves...

Community: OpenJDK