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.Concatenate<Prefix, Suffix>) -> Publishers.MergeMany<Publishers.Concatenate<Prefix, Suffix>>

Parameters

other

Another publisher of this publisher’s type.

Return Value

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software