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

Function Defer

factory.go:172–176  ·  view source on GitHub ↗

Defer does not create the Observable until the observer subscribes, and creates a fresh Observable for each observer.

(f []Producer, opts ...Option)

Source from the content-addressed store, hash-verified

170// Defer does not create the Observable until the observer subscribes,
171// and creates a fresh Observable for each observer.
172func Defer(f []Producer, opts ...Option) Observable {
173 return &ObservableImpl{
174 iterable: newDeferIterable(f, opts...),
175 }
176}
177
178// Empty creates an Observable with no item and terminate immediately.
179func Empty() Observable {

Calls 1

newDeferIterableFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…