Skip to content

Conversation

benjchristensen
Copy link
Member

Some changes resulting from review with @headinthebox and @jhusain

General principles pursued are to simplify the mental model and surface area of the API.

- keeping onNext to be locally consistent with doOnNext
- SingleAssignmentSubscription was removed in one merge, TakeLast modified in another merge.
- flattening map implementations that better fit mental models and use cases
- keeping flatMap as alias to mergeMap since flatMap is common … (though flatMap still confuses people)
- deprecate mapMany as alias to flatMap and mergeMap
If we leave mapWithIndex then we should have “withIndex” on many other operators. Instead of this, an Observable should just be zipped with an infinite stream of numbers and the zip function provides the index.
This keeps the API surface area smaller and provides the desired behavior on all operators.
We have had aggregate from Rx.Net for a while but long ago migrated to reduce as the primary. Time to deprecate it.
@cloudbees-pull-request-builder

RxJava-pull-requests #604 FAILURE
Looks like there's a problem with this pull request

benjchristensen added a commit that referenced this pull request Dec 24, 2013
@benjchristensen benjchristensen merged commit f1b4de7 into ReactiveX:master Dec 24, 2013
@benjchristensen benjchristensen deleted the api-tweaks branch December 24, 2013 06:25
* @return the source Observable with the side-effecting behavior applied
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#dooneach">RxJava Wiki: doOnEach()</a>
* @see <a href="http://msdn.microsoft.com/en-us/library/hh229539.aspx">MSDN: Observable.Do</a>
* @see <a href="https://github.com/Netflix/RxJava/wiki/Observable-Utility-Operators#dooneach">RxJava Wiki: doOnNext()</a>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wiki link here points at the doOnEach entry, while doOnNext is undocumented there.

rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
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

Successfully merging this pull request may close these issues.

2 participants