Michal Fudala
12/16/2018, 11:39 AMisActive
, but here I would want to provide some kind of onCancelled
callback.
(here when I do cancel process is still present when doing ps aux
)Michal Fudala
12/16/2018, 11:47 AMMichal Fudala
12/16/2018, 11:48 AMsuspend...Coroutine
blocks ?Tolriq
12/16/2018, 11:53 AMsuspendCancellableCoroutine {
it.invokeOnCancellation { cancel the job }
it.resume(return result)
}
this is to wrap blocking call into a coroutine that can be cancelled.uli
12/16/2018, 6:52 PM