Simon Lin
08/26/2020, 7:07 AMval jobA = Job()
val jobB = GlobalScope.launch(jobA) {
delay(1000L)
println("World!")
}
What is the different between jobA
and jobB
?
If I would like to cancel the Job, which one need to be called? jobA.cancel()
or jobB.cancel()
?Michael de Kaste
08/26/2020, 7:45 AM