redeem<B> method

Task<B> redeem<B>(
  1. Function1<Object, B> recover,
  2. Function1<A, B> map
)

Implementation

Task<B> redeem<B>(Function1<Object, B> recover, Function1<A, B> map) => attempt().map((a) => a.fold(recover, map));