redeemWith<B> method

Task<B> redeemWith<B>(
  1. Function1<Object, Task<B>> recover,
  2. Function1<A, Task<B>> bind
)

Implementation

Task<B> redeemWith<B>(Function1<Object, Task<B>> recover, Function1<A, Task<B>> bind) => attempt().flatMap((a) => a.fold(recover, bind));