I'm seeing strange behavior with suspend functions...
# coroutines
m
I'm seeing strange behavior with suspend functions that return
Result
. I can see that the body of the suspend function is returning what I expect. The
toString
return
Success(null)
or something like that. The caller of the suspend function is then getting an object with a toString of
Success(Success(null))
. When I return that from another suspend function it does not get wrapped a third time and still logs as
Success(Success(null))
. This is running on Android with Kotlin
1.5.31
and coroutines
1.5.2-native-mt
i
Seems like a bug. Can you, please, file an issue at https://youtrack.jetbrains.com/issues/KT?
m
OK