init(upstream:areInIncreasingOrder:)
Creates a publisher that republishes items from another publisher only if each new item is in increasing order from the previously-published item.
Declaration
init(upstream: Upstream, areInIncreasingOrder: @escaping (Upstream.Output, Upstream.Output) -> Bool)Parameters
- upstream:
The publisher from which this publisher receives its elements.
- areInIncreasingOrder:
A closure that receives two elements and returns true if they are in increasing order.