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

Method DistinctUntilChanged

observable_operator.go:793–799  ·  view source on GitHub ↗

DistinctUntilChanged suppresses consecutive duplicate items in the original Observable. Cannot be run in parallel.

(apply Func, opts ...Option)

Source from the content-addressed store, hash-verified

791// DistinctUntilChanged suppresses consecutive duplicate items in the original Observable.
792// Cannot be run in parallel.
793func (o *ObservableImpl) DistinctUntilChanged(apply Func, opts ...Option) Observable {
794 return observable(o.parent, o, func() operator {
795 return &distinctUntilChangedOperator{
796 apply: apply,
797 }
798 }, true, false, opts...)
799}
800
801type distinctUntilChangedOperator struct {
802 apply Func

Callers

nothing calls this directly

Calls 1

observableFunction · 0.85

Tested by

no test coverage detected