end

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

End the call.

Parameters

call

the call

onSuccess

optionally get notified if the operation was success.

onError

optionally get notified if the operation failed.