Find emits the first item passing a predicate then complete.
(find Predicate, opts ...Option)
| 1020 | |
| 1021 | // Find emits the first item passing a predicate then complete. |
| 1022 | func (o *ObservableImpl) Find(find Predicate, opts ...Option) OptionalSingle { |
| 1023 | return optionalSingle(o.parent, o, func() operator { |
| 1024 | return &findOperator{ |
| 1025 | find: find, |
| 1026 | } |
| 1027 | }, true, true, opts...) |
| 1028 | } |
| 1029 | |
| 1030 | type findOperator struct { |
| 1031 | find Predicate |
nothing calls this directly
no test coverage detected