I'm trying to upgrade to Coroutines `1.7.0-Beta`, ...
# coroutines
m
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
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
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
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
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
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
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.