wrongwrong
08/20/2022, 6:11 AMfuture
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.wrongwrong
08/22/2022, 3:15 PM