TL;DR —
An introduction to Kotlin coroutines compared to Futures/Promises. This is an attempt to fill that gap. The idea is to pick a simple made-up problem, implement it and compare it to other methods. Java’s CompletableFuture and Project Reactor are similar to the Futures and Promises approach used in Java. Kotlin's implementation is based on an e-commerce e-mail problem. The problem is to get the most recent order id from an HTTP endpoint and send this id to two other endpoints.
[story continues]
Written by
@dbarboza
.
Topics and
tags
tags
kotlin|asynchronous|java|reactive-programming|coding|programming|code-quality|software-engineering
This story on HackerNoon has a decentralized backup on Sia.
Transaction ID: I7I1SkHDuCL0eB4OuYmdN8ow-8Oz-n5HqLbM7EC9AjU