Stream.foldErr<F>(fn: (acc: F,error: E,) => Promisable<F>,initialValue: F,): Promise<F>
Similar to Array.prototype.reduce, but works on the stream of errors. If the provided function throws an error or returns a rejected promise, the new error will be collected and emitted as an error result in the stream.
Promise<F>