chain<S2> method

ResStream<S2, F> chain<S2>(
  1. Task<S2, F> task(
    1. S ok
    )
)

Runs the task built from each success value. Failures skip it.

Steps run one at a time, as with then. Each task is an inner run (see Mallard).

Implementation

ResStream<S2, F> chain<S2>(Task<S2, F> Function(S ok) task) =>
    ResStream._(_stream.chain(task as t.Task<S2, F> Function(S)));