onFailure

fun onFailure(action: (error: NRError) -> Unit): Result<T>

Runs action with the error if this result is a failure.

Return

This result, for chaining.