Publishes the maximum value received from the upstream publisher, using the provided error-throwing closure to order the items.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
A throwing closure that receives two elements and returns
trueif they are in increasing order. If this closure throws, the publisher terminates with a
A publisher that publishes the maximum value received from the upstream publisher, after the upstream publisher finishes.