Filter emits only those items from an Observable that pass a predicate test.
(apply Predicate, opts ...Option)
| 19 | |
| 20 | // Filter emits only those items from an Observable that pass a predicate test. |
| 21 | func (s *SingleImpl) Filter(apply Predicate, opts ...Option) OptionalSingle { |
| 22 | return optionalSingle(s.parent, s, func() operator { |
| 23 | return &filterOperatorSingle{apply: apply} |
| 24 | }, true, true, opts...) |
| 25 | } |
| 26 | |
| 27 | // Get returns the item. The error returned is if the context has been cancelled. |
| 28 | // This method is blocking. |
nothing calls this directly
no test coverage detected