Stream.flatMap<U, E2 = E>(fn: (value: T,arrivalIndex: number) => Promisable<AsyncIterable<U> | Iterable<U>>): Stream<U, E | E2>
Similar to Array.prototype.flatMap, but works on the stream of results. If the provided function throws an error or returns a rejected promise, the error will be collected and emitted as an error result in the stream.
When concurrency is greater than 1, results may be emitted out of order.