Generic Instance Method


Subscribes to an additional publisher and publishes a tuple upon receiving output from either publisher.


func combineLatest<P>(_ other: P) -> Publishers.CombineLatest<Publishers.Zip3<A, B, C>, P> where P : Publisher, Self.Failure == P.Failure



Another publisher to combine with this one.

Return Value

A publisher that receives and combines elements from this and another publisher.


The combined publisher passes through any requests to all upstream publishers. However, it still obeys the demand-fulfilling rule of only sending the request amount downstream. If the demand isn’t unlimited, it drops values from upstream publishers. It implements this by using a buffer size of 1 for each upstream, and holds the most recent value in each buffer. All upstream publishers need to complete normally for this publisher to complete. If any of the combined publishers terminates with a failure, this publisher also fails. If an upstream publisher never publishes a value, this publisher neither produces any elements nor signals that publishing has completed.