Stream.recoverWhen<E2 extends E,U,>(guard: (error: E) => error is E2,fn: (error: E2) => Promisable<U>,): Stream<T | U, Exclude<E, E2>>
Recovers from specific error types by applying the provided function to transform them into successful values. This allows you to handle specific errors gracefully while still collecting other errors in the stream.