core / pragma / PragmaResult / onFailure /
onFailure #
suspend fun onFailure(action: suspend (TFailure) -> Unit): PragmaResult<TSuccess, TFailure>
Performs the given action on the encapsulated value if this instance represents failure. Returns the original PragmaResult unchanged.