Thrown Operator

February 23, 2020 ยท View on GitHub

Overview

Create an Observable that emits no items and terminates with an error.

Example

observable := rxgo.Thrown(errors.New("foo"))

Output:

foo