Dario Pellegrini
04/24/2018, 7:49 AMval deferred: Deferred<String> = async(CommonPool) { get() }
val job = launch(UI) {
try {
val result = deferred.await()
Log.i("Coroutines", result)
} catch (e: Exception) {
Log.e("Coroutine", e.toString())
}
}
Then at some point I call job.cancel().
Does Log.i get called or not? In other words, does job.cancel() stop the job everytime no matter at which point the job is or whatever the job is doing?