init(upstream:output:)
Creates a publisher that emits a Boolean value when it receives a specific element from its upstream publisher.
Declaration
init(upstream: Upstream, output: Upstream.Output)Parameters
- upstream:
The publisher from which this publisher receives elements.
- output:
The element to match in the upstream publisher.