Generic Instance Method

zip(_:_:)

Combines elements from two other publishers and delivers groups of elements as tuples.

Declaration

func zip<P, Q>(_ publisher1: P, _ publisher2: Q) -> Publishers.Zip3<Deferred<DeferredPublisher>, P, Q> where P : Publisher, Q : Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure

Parameters

publisher1

A second publisher.

publisher2

A third publisher.

Return Value

A publisher that emits groups of elements from the upstream publishers as tuples.