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

Function FromEventSource

factory.go:198–204  ·  view source on GitHub ↗

FromEventSource creates a hot observable from a channel.

(next <-chan Item, opts ...Option)

Source from the content-addressed store, hash-verified

196
197// FromEventSource creates a hot observable from a channel.
198func 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.

Callers 3

TestLeakFunction · 0.85

Calls 4

parseOptionsFunction · 0.85
newEventSourceIterableFunction · 0.85
buildContextMethod · 0.65

Tested by 3

TestLeakFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…