deviant
03/05/2017, 3:14 PMNo need to check forSome 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.. You can safely remove them, unless you underlying mechanism is buggy and would invoke onSuccess/onError more than oncecontinuation.isActive