> No need to check for `continuation.isActive`....
# coroutines
No need to check for
. You can safely remove them, unless you underlying mechanism is buggy and would invoke onSuccess/onError more than once
Some of my listeners can be triggered >1 times. For example Firebase database listener. In this case i use Channel to emit values and do catch it in for(data in channel) loop. The only problem: i don't get how to do post-cancellation work to unsubscribe from the listener, like it possible with continuation.invokeOnCompletion() method.