Generic Instance Method


Combines elements from this publisher with those from two other publishers, delivering an interleaved sequence of elements.


func merge<B, C>(with b: B, _ c: C) -> Publishers.Merge3<Publishers.Share<Upstream>, B, C> where B : Publisher, C : Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output



A second publisher.


A third publisher.

Return Value

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


The merged publisher continues to emit elements until all upstream publishers finish. If an upstream publisher produces an error, the merged publisher fails with that error.

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