cancel
open fun cancel(call: Call, onSuccess: suspend (Call) -> Unit? = null, onError: suspend (Exception) -> Unit? = null)
Cancel an outgoing call if any. Same as reject but can be overridden for different behavior on Outgoing calls.
Parameters
call
the Call to cancel.
onSuccess
optionally get notified if the operation was success.
onError
optionally get notified if the operation failed.