Skip to content

Conversation

@akarnokd
Copy link
Member

Based on #3014

The operator can request up to Long.MAX_VALUE because it will only ever return a single value. If there are fewer elements, the onCompleted() will be triggered anyway. If there are more elements, the unsubscribe() will stop the sequence at the index.

benjchristensen added a commit that referenced this pull request Jul 14, 2015
ElementAt request management enhanced
@benjchristensen benjchristensen merged commit 89782ee into ReactiveX:1.x Jul 14, 2015
@akarnokd akarnokd deleted the ElementAtImprovement branch July 14, 2015 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants