One Logo Pool Ball
Combine · IOS API REFERENCE

Publishers.Zip

struct · iOS 13.0+ · SDK 27.1

struct Zip<A, B> where A : Publisher, B : Publisher, A.Failure == B.Failure

A publisher created by applying the zip function to two upstream publishers. Use `Publishers.Zip` to combine the latest elements from two publishers and emit a tuple to the downstream. The returned publisher waits until both publishers have emitted an event, then delivers the oldest unconsumed event from each publisher together as a tuple to the subscriber. Much like a zipper or zip fastener on a piece of clothing pulls together rows of teeth to link the two sides, `Publishers.Zip` combines streams from two different publishers by linking pairs of elements from each side. If either upstream publisher finishes successfully or fails with an error, so too does the zipped publisher.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

Publishers.Zip.a

This declaration needs Swift generic type arguments. (no canonical witness for A)

Publishers.Zip.b

This declaration needs Swift generic type arguments. (no canonical witness for B)

Publishers.Zip.init(_:_:)

This declaration needs Swift generic type arguments. (no canonical witness for A)

Publishers.Zip.receive(subscriber:)

This declaration needs Swift generic type arguments. (no canonical witness for S)

All Combine types →