Errors Operator

November 24, 2020 ยท View on GitHub

Overview

Return all the errors thrown by an Observable.

This method is blocking.

Example

errs := rxgo.Just(
	errors.New("foo"),
	errors.New("bar"),
	errors.New("baz"),
)().Errors(rxgo.WithErrorStrategy(rxgo.Continue))
fmt.Println(errs)

Output:

[foo bar baz]

Options