Distinct suppresses duplicate items in the original Observable and returns a new Observable.
(apply Func, opts ...Option)
| 742 | // Distinct suppresses duplicate items in the original Observable and returns |
| 743 | // a new Observable. |
| 744 | func (o *ObservableImpl) Distinct(apply Func, opts ...Option) Observable { |
| 745 | return observable(o.parent, o, func() operator { |
| 746 | return &distinctOperator{ |
| 747 | apply: apply, |
| 748 | keyset: make(map[interface{}]interface{}), |
| 749 | } |
| 750 | }, false, false, opts...) |
| 751 | } |
| 752 | |
| 753 | type distinctOperator struct { |
| 754 | apply Func |
nothing calls this directly
no test coverage detected