thenAttemptStream<S2> method

ResStream<S2, F> thenAttemptStream<S2>({
  1. required Stream<S2> run(
    1. S ok
    ),
  2. required F handle(
    1. Object e
    ),
})

Starts the plain stream built from the success value, catching its errors as ResultStream.attempt does. Otherwise it behaves like chainStream.

Implementation

ResStream<S2, F> thenAttemptStream<S2>({
  required Stream<S2> Function(S ok) run,
  required F Function(Object e) handle,
}) => ResStream._(_task.thenAttemptStream(run: run, handle: handle));