Roman Elizarov
1 min readApr 23, 2019

--

You might be confusing how a hotCompletableFuture works as opposed to how something like a cold Rx Single type works. In this example of CompletableFuture.supplyAsync { ... } the lambda starts executing immediately. It does not wait until get is called.

--

--

Roman Elizarov
Roman Elizarov

Written by Roman Elizarov

Project Lead for the Kotlin Programming Language @JetBrains

Responses (1)