recoverUnless
recoverUnless<
E,A,B>(isBlocked,fallback): (data) =>Result<E,A|B>
Defined in: Core/Result.ts:276
Recovers from an error unless the predicate isBlocked returns true for that error.
The fallback can produce a different success type, widening the result to Result<E, A | B>.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”isBlocked
Section titled “isBlocked”(e) => boolean
fallback
Section titled “fallback”() => Result<E, B>
Returns
Section titled “Returns”(data) => Result<E, A | B>