https://kotlinlang.org logo
Title
m

martypitt

03/24/2023, 8:43 AM
I'm trying to upgrade to Coroutines
1.7.0-Beta
, and it appears that
kotlinx.coroutines.future.future
has been moved - does anyone know what it's replacement is?
d

Dmitry Khalanskiy [JB]

03/24/2023, 9:22 AM
It's still there, it just moved to the
kotlinx-coroutines-core
artifact, and previously it was in the
jdk8
one. If you experience some build failures due to this, please report them at https://github.com/Kotlin/kotlinx.coroutines/issues, as we want this transition to be transparent to the user.
m

martypitt

03/24/2023, 11:46 AM
Thanks @Dmitry Khalanskiy [JB]. I've raised this ticket. I'm sure this is something local I'm doing wrong, but it just won't compile. If you have any tips to unblock me, it'd be great!
d

Dmitry Khalanskiy [JB]

03/24/2023, 11:51 AM
Do you have the failing code you could share with us? If you don't want to make it public for everyone, it's okay to show it to just us. This way, we'll be able to reproduce the issue much more quickly.
m

martypitt

03/24/2023, 11:54 AM
Happy to share, just not sure the most productive way to do it. It's part of a huuuuge project. Can shoot you the specific files, but they won't compile. Is that helpful?
Let me spend 10 and see if I can reproduce in a standalone...
d

Dmitry Khalanskiy [JB]

03/24/2023, 11:56 AM
The smaller the reproducing project, the better for us, but if a small reproducer would be too difficult to make, a huge reproducing project is also better than none.
m

martypitt

03/24/2023, 12:03 PM
Reproducable project for the win! I found the issue, will update the ticket, but looks like previoosly
fun CoroutineContext.future
was an extension function, wheras now it's
fun CoroutineScope.future
Code with example, and explaination updated on the ticket.