then<S2> method
Runs a function that returns a Result with each success value. Failures skip it.
Steps run one at a time, like Stream.asyncMap: the source is paused while a step runs, and the output keeps input order, failures included.
Implementation
ResStream<S2, F> then<S2>(FutureOr<Res<S2, F>> Function(S ok) run) =>
ResStream._(_stream.then(run as FutureOr<Result<S2, F>> Function(S)));