Note that the inverse is not true: canceling a child job does not cancel its parent.
b4777467766je citiralaпре 2 године
If the code in a coroutine has an unhandled exception, its job gets canceled
b4777467766je citiralaпре 2 године
Here, we have two independent jobs. The second job generates a NullPointerException, so it will be canceled at that point, skipping the rest of its work. The first job, though, is unaffected, since it is not related to the second job.
fb2epub
Prevucite i otpustite datoteke
(ne više od 5 odjednom)