How to convert those functions with a complete lis...
# coroutines
d
How to convert those functions with a complete listener to a suspend function?
z
s
@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
But how to use this adapter with the smartlock api?
s
Just do
request.await()