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)
| 1922 | // Scan apply a Func2 to each item emitted by an Observable, sequentially, and emit each successive value. |
| 1923 | // Cannot be run in parallel. |
| 1924 | func (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 | |
| 1932 | type scanOperator struct { |
| 1933 | apply Func2 |
nothing calls this directly
no test coverage detected