Join Slack
Powered by
What would be the correct approach to do this. I a...
# android
i
iamraghavawasthi
10/14/2021, 8:13 AM
What would be the correct approach to do this. I am getting an error
e
ephemient
10/14/2021, 8:17 AM
https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-play-services
d
Damian Zawadzki
10/14/2021, 8:28 AM
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
louiscad
10/14/2021, 12:14 PM
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
iamraghavawasthi
10/15/2021, 10:38 AM
Okay Thanks alot
@louiscad
@Damian Zawadzki
@ephemient
4
Views
Open in Slack
Previous
Next