Christopher Mederos
10/05/2023, 7:26 AMTask<Void>
and would like a way to synchronously execute them while catching certain exceptions they might throw. I'm having trouble finding the right terms to lookup some of the behaviour, so I'd appreciate anyone setting me in the right direction!Mikael Stockman
10/05/2023, 7:33 AMimplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.4.1'
Then you can call await on Tasks like this:
try {
task.await()
} catch (e: Exception) {
}
More info here:
https://developers.google.com/android/guides/tasks#kotlin_coroutineChristopher Mederos
10/05/2023, 7:44 AM