Join Slack
Powered by
How to convert those functions with a complete lis...
# coroutines
d
Damien
10/19/2018, 8:16 PM
How to convert those functions with a complete listener to a suspend function?
-.kt
z
Zach Klippenstein (he/him) [MOD]
10/19/2018, 8:33 PM
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.coroutines/suspend-coroutine.html
👍 1
s
SUPERCILEX
10/19/2018, 9:51 PM
@Damien
For Play Services Tasks specifically, there's an official adapter:
https://github.com/Kotlin/kotlinx.coroutines/tree/master/integration/kotlinx-coroutines-play-services
➕ 1
d
Damien
10/20/2018, 8:59 PM
But how to use this adapter with the smartlock api?
s
SUPERCILEX
10/20/2018, 9:33 PM
Just do
request.await()
4
Views
Open in Slack
Previous
Next