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

Method Scan

observable_operator.go:1924–1930  ·  view source on GitHub ↗

Scan apply a Func2 to each item emitted by an Observable, sequentially, and emit each successive value. Cannot be run in parallel.

(apply Func2, opts ...Option)

Source from the content-addressed store, hash-verified

1922// Scan apply a Func2 to each item emitted by an Observable, sequentially, and emit each successive value.
1923// Cannot be run in parallel.
1924func (o *ObservableImpl) Scan(apply Func2, opts ...Option) Observable {
1925 return observable(o.parent, o, func() operator {
1926 return &scanOperator{
1927 apply: apply,
1928 }
1929 }, true, false, opts...)
1930}
1931
1932type scanOperator struct {
1933 apply Func2

Callers

nothing calls this directly

Calls 1

observableFunction · 0.85

Tested by

no test coverage detected