Max determines and emits the maximum-valued item emitted by an Observable according to a comparator.
(comparator Comparator, opts ...Option)
| 1517 | |
| 1518 | // Max determines and emits the maximum-valued item emitted by an Observable according to a comparator. |
| 1519 | func (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 | |
| 1528 | type maxOperator struct { |
| 1529 | comparator Comparator |
nothing calls this directly
no test coverage detected