useError

fun useError(actOn: (Error) -> Unit): Result<Error, Value>

Use the error of a failed result.

Use the error of a failed result in the middle of a computation chain.

Return

the original result.

Parameters

actOn

the action to be executed with the error.