Skip to content

Add Scan/Reduce with Generic Accumulator Type #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mairbek opened this issue Mar 4, 2013 · 2 comments
Closed

Add Scan/Reduce with Generic Accumulator Type #170

mairbek opened this issue Mar 4, 2013 · 2 comments

Comments

@mairbek
Copy link
Contributor

mairbek commented Mar 4, 2013

There should be support for generic reducers, for example to implement #32.

Right now Scan restricts accumulator to be the same type as an observable scan(Observable<T> sequence, T initialValue, Func2<T, T, T> accumulator).

This should be changed to scan(Observable<T> sequence, A initialValue, Func2<A, T, A> accumulator).

.NET supports this type of reducers http://msdn.microsoft.com/en-us/library/hh212007(v=vs.103).aspx

@jmhofer
Copy link
Contributor

jmhofer commented Sep 7, 2013

I already fixed this some time back. scan and reduce are able to use accumulators of a type other than the one of Observable now. Imho this issue can be closed.

@benjchristensen
Copy link
Member

Great, thanks @jmhofer

@mairbek I'm going to close this, if you feel otherwise about the status then please re-open.

jihoonson pushed a commit to jihoonson/RxJava that referenced this issue Mar 6, 2020
Removing usage of fork join pool in CircuitBreakerMethodInterceptor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants