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

Function Empty

factory.go:179–185  ·  view source on GitHub ↗

Empty creates an Observable with no item and terminate immediately.

()

Source from the content-addressed store, hash-verified

177
178// Empty creates an Observable with no item and terminate immediately.
179func Empty() Observable {
180 next := make(chan Item)
181 close(next)
182 return &ObservableImpl{
183 iterable: newChannelIterable(next),
184 }
185}
186
187// FromChannel creates a cold observable from a channel.
188func FromChannel(next <-chan Item, opts ...Option) Observable {

Calls 1

newChannelIterableFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…