MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / Min

Method Min

observable_operator.go:1561–1568  ·  view source on GitHub ↗

Min determines and emits the minimum-valued item emitted by an Observable according to a comparator.

(comparator Comparator, opts ...Option)

Source from the content-addressed store, hash-verified

1559
1560// Min determines and emits the minimum-valued item emitted by an Observable according to a comparator.
1561func (o *ObservableImpl) Min(comparator Comparator, opts ...Option) OptionalSingle {
1562 return optionalSingle(o.parent, o, func() operator {
1563 return &minOperator{
1564 comparator: comparator,
1565 empty: true,
1566 }
1567 }, false, false, opts...)
1568}
1569
1570type minOperator struct {
1571 comparator Comparator

Callers

nothing calls this directly

Calls 1

optionalSingleFunction · 0.85

Tested by

no test coverage detected