https://kotlinlang.org logo
Title
l

LastExceed

04/08/2020, 2:50 PM
how do i convert
CompletableFuture<T>
to
Deferred<T>
using kotlinx.coroutines ?
l

LastExceed

04/08/2020, 2:52 PM
oh so its jdk8 only?
d

diesieben07

04/08/2020, 2:52 PM
CompletableFuture
is a part of JDK 8, so yeah
l

LastExceed

04/08/2020, 2:54 PM
is this a separate maven/gradle package ?
d

diesieben07

04/08/2020, 2:54 PM
Yes.
l

LastExceed

04/08/2020, 2:55 PM
well whats the import path
i cant find it
d

diesieben07

04/08/2020, 2:56 PM
https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-jdk8 Says "Module name below corresponds to the artifact name in Maven/Gradle."
l

LastExceed

04/08/2020, 2:57 PM
thanks
Module name below corresponds to the artifact name in Maven/Gradle
where does it say that? am i blind?
d

diesieben07

04/08/2020, 2:57 PM
I linked it 😉