getOrElse method

RIO<R, A> getOrElse(
  1. A orElse(
    1. E _
    )
)

Succeed with the value of this ZIO if it succeeds, or succeed with the result of the given function if it fails.

Implementation

RIO<R, A> getOrElse(
  A Function(E _) orElse,
) =>
    matchSync(orElse, identity);