What would be the correct approach to do this. I a...
# android
i
What would be the correct approach to do this. I am getting an error
d
or try suspendCoroutine and handle it by itself. But ofc library would be best solution 🙂 https://vineeth.ink/coroutine-basics-converting-callbacks-to-coroutines-207c9d59eb02
1
l
Don't use suspendCoroutine, use suspendCancellableCoroutine to avoid large leaks, or better yet, use the kotlinx coroutines play services artifact that has an
await()
extension for
Task
.
👍 3
i
Okay Thanks alot @louiscad @Damian Zawadzki @ephemient