leave

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

Leave the call from the parameter.

Parameters

call

the call object.

onSuccess

optionally get notified if the operation was success.

onError

optionally get notified if the operation failed.