addOnCancelListener
fun addOnCancelListener(listener: Session.TerminalStateListener.OnCancelListener): Session.TerminalStateListener.Binder<F>
Adds a listener which will be invoked when a Session is cancelled.
Replaces previously added OnCancelListener.
If session was already cancelled by the time this function is called, the listener will be invoked immediately in the calling thread.
Return
this Binder to allow chaining.