Documentation / @eventkit/base / merge
Function: merge()
ts
function merge<T, A>(...otherSources): OperatorFunction<T, T | A[number]>
Merges the values from all provided observables into a single observable. When subscribed to, it will subscribe to all provided observables and yield all values yielded by all of the provided observables. The output observable will complete when all provided observables have completed, and error when any provided observable errors.
Type Parameters
Type Parameter |
---|
T |
A extends readonly unknown [] |
Parameters
Parameter | Type |
---|---|
...otherSources | [...AsyncObservableInputTuple<A>[] ] |
Returns
OperatorFunction
<T
, T
| A
[number
]>