Skip to content

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

2 participants