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.Map<Upstream, Output>) -> Publishers.MergeMany<Publishers.Map<Upstream, Output>>

Parameters

other

Another publisher of this publisher’s type.

Return Value

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