elizarov
06/07/2018, 8:30 AMJob()
had completed “normally” or “was cancelled”. You can tell the difference (between normal completion and cancellation) with isCancelled
and that is the only difference. Just use cancel()
in all cases and don’t use isCancelled
.gildor
06/07/2018, 8:31 AMisCompleted
?gildor
06/07/2018, 8:32 AMelizarov
06/07/2018, 8:32 AMisCompleted
. That is how you can tell whether your “lifecycle” has completed or not. You should not use isCancelled
because the difference between “completed normally” and “cancelled” is quite superfluous.gildor
06/07/2018, 8:33 AMgildor
06/07/2018, 8:34 AMelizarov
06/07/2018, 8:37 AMspand
06/07/2018, 8:41 AM