Instance Method

merge(with:)

Combines elements from this publisher with those from another publisher of the same type, delivering an interleaved sequence of elements.

Declaration

func merge(with other: Publishers.Share<Upstream>) -> Publishers.MergeMany<Publishers.Share<Upstream>>

Parameters

other

Another publisher of this publisher’s type.

Return Value

A publisher that emits an event when either upstream publisher emits an event.