Contents

Publishers.Zip3

A publisher created by applying the zip function to three upstream publishers.

Declaration

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

Overview

Use a Publishers.Zip3 to combine the latest elements from three publishers and emit a tuple to the downstream. The returned publisher waits until all three publishers have emitted an event, then delivers the oldest unconsumed event from each publisher as a tuple to the subscriber.

If any upstream publisher finishes successfully or fails with an error, so too does the zipped publisher.

Topics

Creating a zip-three Publisher

Declaring supporting types

Inspecting publisher properties

Comparing publishers

Default Implementations

See Also

Combining elements from multiple publishers