Generic Instance Method

merge(with:_:_:_:_:_:_:)

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

Declaration

func merge<B, C, D, E, F, G, H>(with b: B, _ c: C, _ d: D, _ e: E, _ f: F, _ g: G, _ h: H) -> Publishers.Merge8<Publishers.CombineLatest<A, B>, B, C, D, E, F, G, H> where B : Publisher, C : Publisher, D : Publisher, E : Publisher, F : Publisher, G : Publisher, H : Publisher, Self.Failure == B.Failure, Self.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output, E.Failure == F.Failure, E.Output == F.Output, F.Failure == G.Failure, F.Output == G.Output, G.Failure == H.Failure, G.Output == H.Output

Parameters

b

A second publisher.

c

A third publisher.

d

A fourth publisher.

e

A fifth publisher.

f

A sixth publisher.

g

A seventh publisher.

h

An eighth publisher.

Return Value

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

Discussion

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.