OnErrorReturn instructs an Observable to emit an item (returned by a specified function) rather than invoking onError if it encounters an error.
(resumeFunc ErrorFunc, opts ...Option)
| 1633 | // OnErrorReturn instructs an Observable to emit an item (returned by a specified function) |
| 1634 | // rather than invoking onError if it encounters an error. |
| 1635 | func (o *ObservableImpl) OnErrorReturn(resumeFunc ErrorFunc, opts ...Option) Observable { |
| 1636 | return observable(o.parent, o, func() operator { |
| 1637 | return &onErrorReturnOperator{resumeFunc: resumeFunc} |
| 1638 | }, true, false, opts...) |
| 1639 | } |
| 1640 | |
| 1641 | type onErrorReturnOperator struct { |
| 1642 | resumeFunc ErrorFunc |
nothing calls this directly
no test coverage detected