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

Method Filter

observable_operator.go:995–999  ·  view source on GitHub ↗

Filter emits only those items from an Observable that pass a predicate test.

(apply Predicate, opts ...Option)

Source from the content-addressed store, hash-verified

993
994// Filter emits only those items from an Observable that pass a predicate test.
995func (o *ObservableImpl) Filter(apply Predicate, opts ...Option) Observable {
996 return observable(o.parent, o, func() operator {
997 return &filterOperator{apply: apply}
998 }, false, true, opts...)
999}
1000
1001type filterOperator struct {
1002 apply Predicate

Callers

nothing calls this directly

Calls 1

observableFunction · 0.85

Tested by

no test coverage detected