MCPcopy Create free account
hub / github.com/ReactiveX/RxGo / OnErrorReturnItem

Method OnErrorReturnItem

observable_operator.go:1660–1664  ·  view source on GitHub ↗

OnErrorReturnItem instructs on Observable to emit an item if it encounters an error.

(resume interface{}, opts ...Option)

Source from the content-addressed store, hash-verified

1658
1659// OnErrorReturnItem instructs on Observable to emit an item if it encounters an error.
1660func (o *ObservableImpl) OnErrorReturnItem(resume interface{}, opts ...Option) Observable {
1661 return observable(o.parent, o, func() operator {
1662 return &onErrorReturnItemOperator{resume: resume}
1663 }, true, false, opts...)
1664}
1665
1666type onErrorReturnItemOperator struct {
1667 resume interface{}

Callers

nothing calls this directly

Calls 1

observableFunction · 0.85

Tested by

no test coverage detected