defaultValueOnFailure

fun defaultValueOnFailure(block: suspend () -> A): Effect.RunDSL<A>

Sets the default value provider for failed computations.

Return

This RunDSL instance for chaining.

Parameters

block

A suspendable function that provides the default value.