First returns new Observable which emit only first item. Cannot be run in parallel.
(opts ...Option)
| 1051 | // First returns new Observable which emit only first item. |
| 1052 | // Cannot be run in parallel. |
| 1053 | func (o *ObservableImpl) First(opts ...Option) OptionalSingle { |
| 1054 | return optionalSingle(o.parent, o, func() operator { |
| 1055 | return &firstOperator{} |
| 1056 | }, true, false, opts...) |
| 1057 | } |
| 1058 | |
| 1059 | type firstOperator struct{} |
| 1060 |
nothing calls this directly
no test coverage detected