A subject that broadcasts elements to downstream subscribers.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
As a concrete implementation of
Passthrough provides a convenient way to adapt existing imperative code to the Combine model.
Passthrough doesn’t have an initial value or a buffer of the most recently-published element. A
Passthrough drops values if there are no subscribers, or its current demand is zero.