<@U0B8ZRDLZ> CompletableFuture is from Java 8 and ...
# eap
g
@treelzebub CompletableFuture is from Java 8 and require Android API level 24 - https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html But CompletableFuture is just one of coroutine implementation, you can write coroutines library above any other implementation of async pattern, for example async/await for RxJava Observable, Retrofit Call etc. You can check examples of different implementations and examples of usage - https://github.com/Kotlin/kotlinx.coroutines Also kotlin
suspend
functions don’t require wrappers for async calls at all, because you can call them without blocking TL;DR Coroutines itself don't require java 8, but some implementation do
👍 1