foldHttpError
inline fun <T, R> KrosstalkResult.SuccessOrHttpError<T>.foldHttpError(onSuccess: (KrosstalkResult.Success<T>) -> R, onHttpError: (KrosstalkResult.HttpError) -> R): R
Content copied to clipboard
Get a value depending on the type of result.