FromEventSource creates a hot observable from a channel.
(next <-chan Item, opts ...Option)
| 196 | |
| 197 | // FromEventSource creates a hot observable from a channel. |
| 198 | func FromEventSource(next <-chan Item, opts ...Option) Observable { |
| 199 | option := parseOptions(opts...) |
| 200 | |
| 201 | return &ObservableImpl{ |
| 202 | iterable: newEventSourceIterable(option.buildContext(emptyContext), next, option.getBackPressureStrategy()), |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | // Interval creates an Observable emitting incremental integers infinitely between |
| 207 | // each given time interval. |
searching dependent graphs…