As a Kotlin user, should I prefer the Firebase API...
# android
f
As a Kotlin user, should I prefer the Firebase API's await methods over callbacks? Are there any caveats? The coroutine scope will not actually cancel async Firebase methods will it?
i
Most of the Firebase APIs don't support cancelling at all, Coroutines are not. The
kotlinx-coroutines-play-services
do handle cancellation correctly in that it doesn't not deliver a result if the scope is cancelled, which is the best that can be done
f
thank you very much
do I replace task.isSuccessful with try/catch?
o
Yes
f
thank you!