I everyone! I have a question on jobs and cancella...
# coroutines
d
I everyone! I have a question on jobs and cancellation. If I have something like this:
Copy code
val 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?