Merges multiple data sources into a single stream, yielding items as they become available.
Items are emitted in the order they resolve, not in source order. All sources are consumed concurrently.
The type of items in the streams
The data sources to merge (can be synchronous or asynchronous)
A pipe containing all items from all sources
// Order depends on async timingawait merge(items([1, 2]), items([3, 4]))(toArray()); // e.g., [1, 3, 2, 4] Copy
// Order depends on async timingawait merge(items([1, 2]), items([3, 4]))(toArray()); // e.g., [1, 3, 2, 4]
Merges multiple data sources into a single stream, yielding items as they become available.
Items are emitted in the order they resolve, not in source order. All sources are consumed concurrently.