Filter emits only those items from an Observable that pass a predicate test.
(apply Predicate, opts ...Option)
| 993 | |
| 994 | // Filter emits only those items from an Observable that pass a predicate test. |
| 995 | func (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 | |
| 1001 | type filterOperator struct { |
| 1002 | apply Predicate |
nothing calls this directly
no test coverage detected