Instance Method

min(by:)

Publishes the minimum value received from the upstream publisher, after it finishes.

Declaration

func min(by areInIncreasingOrder: @escaping (Output, Output) -> Bool) -> Publishers.Comparison<Record<Output, Failure>>

Parameters

areInIncreasingOrder

A closure that receives two elements and returns true if they are in increasing order.

Return Value

A publisher that publishes the minimum value received from the upstream publisher, after the upstream publisher finishes.