reject

open fun reject(call: Call, reason: RejectReason? = null, onSuccess: suspend (Call) -> Unit? = null, onError: suspend (Exception) -> Unit? = null)

Reject the call in the parameter.

Invokes Call.reject then Call.leave. Optionally callbacks are invoked.

Parameters

call

the call to reject

onSuccess

optionally get notified if the operation was success.

onError

optionally get notified if the operation failed.