Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/core / / merge
Function: merge()
ts
function merge<T>(sources, signal?): AsyncIterable<T>;Defined in: packages/core/src/utils/streams.ts:109
Merge multiple async iterables into a single output iterable. Items are yielded in the order they arrive (interleaved), not in source order. Cancellation propagates to every upstream iterator.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
sources | readonly AsyncIterable<T, any, any>[] |
signal? | AbortSignal |
Returns
AsyncIterable<T>