Question. What I found hard or wasn't able to find. If I run my work on suspendCancellableCoroutine, there is no kinda "callback" for actual cancellation of coroutine.
I can't check isCancelled as I am not running cycle, but network call... So I would be glad to cancel network call if the cancellableCoroutine is actually cancelled...
But I didn't found a way.
All I can do is add invokeOnCompletion for continuation and then cancel, but it will be called also on successfull case