Current implementation utilizes invokeOnCompletion for the parent job in order to cancel the EnqueuedJob, but because of the withContext(NonCancellable) { latch.join() }, we are detached from the parent job and will not get the invokeOnCompletion callback.
Current implementation utilizes
invokeOnCompletion
for the parent job in order to cancel theEnqueuedJob
, but because of thewithContext(NonCancellable) { latch.join() }
, we are detached from the parent job and will not get theinvokeOnCompletion
callback.