Generic Instance Method

combineLatest(_:_:)

Subscribes to two additional publishers and publishes a tuple upon receiving output from any of the publishers.

Declaration

func combineLatest<P, Q>(_ publisher1: P, _ publisher2: Q) -> Publishers.CombineLatest3<AnyPublisher<Output, Failure>, P, Q> where P : Publisher, Q : Publisher, Self.Failure == P.Failure, P.Failure == Q.Failure

Parameters

publisher1

A second publisher to combine with this one.

publisher2

A third publisher to combine with this one.

Return Value

A publisher that receives and combines elements from this publisher and two other publishers.