Publishers.Zip
A publisher created by applying the zip function to two upstream publishers.
Declaration
struct Zip<A, B> where A : Publisher, B : Publisher, A.Failure == B.FailureOverview
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.