getOrElse
Returns the encapsulated value if the operation succeeded, or the result of onFailure function for ChannelResult.exceptionOrNull otherwise.
A shorthand for if (isSuccess) getOrNull() else onFailure(exceptionOrNull())
.
Returns the encapsulated value if the operation succeeded, or the result of onFailure function for ChannelResult.exceptionOrNull otherwise.
A shorthand for if (isSuccess) getOrNull() else onFailure(exceptionOrNull())
.