https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

Damien

10/19/2018, 8:16 PM
How to convert those functions with a complete listener to a suspend function?
z

Zach Klippenstein (he/him) [MOD]

10/19/2018, 8:33 PM
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