curioustechizen
04/28/2020, 9:06 AMresumeWith on kotlin.coroutines.Continuation a mutating operation? If so, how can I share it with another thread in order to bridge callback-style APIs and suspend functions?
My scenario: I have a suspend function in a shared API (shared between Android and iOS). On Android I just implement it as a regular suspend function. On iOS, I'm attempting to use continuation and call it from my callback.
• If I freeze the continuation object I receive InvalidMutabilityException,
• if I don't freeze it, I receive IncorrectDereferenceException.
I'm using coroutines 1.3.5-native-mtcurioustechizen
04/28/2020, 9:12 AMcontinution.resumeWith in my Swift codecurioustechizen
04/29/2020, 12:27 PM