https://kotlinlang.org logo
#coroutines
Title
# coroutines
w

wrongwrong

08/20/2022, 6:11 AM
Is the
future
function in
kotlinx-coroutines-jdk8
available as per the sample code? https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-jdk8/#:~:text=to%20the%20future-,Example,-Given%20the%20following The definition shows that a
CoroutineScope
is required, and actually reproducing the sample code results in a compile error. https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-jdk8/kotlinx.coroutines.future/future.html Also, if there is a way to achieve the same behavior as in the sample code, I would appreciate it if you could let me know.
I have opened a ticket with YouTrack regarding this issue. https://youtrack.jetbrains.com/issue/KT-53685
8 Views