Instance Method

min()

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

Declaration

func min() -> Publishers.Comparison<Publishers.Buffer<Upstream>>
Available when Output conforms to Comparable.

Return Value

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

Discussion

After this publisher receives a request for more than 0 items, it requests unlimited items from its upstream publisher.