Skip to content
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

Improve Subscriber readability #2990

Merged
merged 1 commit into from
Jun 9, 2015

Conversation

davidmoten
Copy link
Collaborator

The Subscriber class is something I encounter frequently when debug stepping through code and is hard to read. This PR improves the names of variables and makes the request method more readable in particular by moving some code off into another method.

I've also put in a return straight after the addToRequested(n) call so that we don't need to make an unnecessary test of producerToRequestFrom != null. Very minor saving I'm sure but why not.

Javadoc is still missing and I thought to leave that for another PR (because it will require a bit more thought).

benjchristensen added a commit that referenced this pull request Jun 9, 2015
@benjchristensen benjchristensen merged commit 2c2bc0d into ReactiveX:1.x Jun 9, 2015
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