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

Method Max

observable_operator.go:1519–1526  ·  view source on GitHub ↗

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

(comparator Comparator, opts ...Option)

Source from the content-addressed store, hash-verified

1517
1518// Max determines and emits the maximum-valued item emitted by an Observable according to a comparator.
1519func (o *ObservableImpl) Max(comparator Comparator, opts ...Option) OptionalSingle {
1520 return optionalSingle(o.parent, o, func() operator {
1521 return &maxOperator{
1522 comparator: comparator,
1523 empty: true,
1524 }
1525 }, false, false, opts...)
1526}
1527
1528type maxOperator struct {
1529 comparator Comparator

Callers

nothing calls this directly

Calls 1

optionalSingleFunction · 0.85

Tested by

no test coverage detected