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

feat(delayWhen): add index to the selector function #2409

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

martinsik
Copy link
Contributor

This PR adds current index to the selector function in delayWhenoperator.

source.delayWhen((value, index) => {
  ...
});

Related issue (if exists):
#2388

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0007%) to 97.689% when pulling 5d6291e on martinsik:add-index-to-delaywhen into 046b03d on ReactiveX:master.

@kwonoj
Copy link
Member

kwonoj commented Mar 12, 2017

Change looks fine, but I assume TypeScript users who used selector before encounter compilation error by selector signature changes?

@benlesh
Copy link
Member

benlesh commented Mar 13, 2017

@kwonoj I don't think so... since arguments are optional in JavaScript, TypeScript shouldn't complain I don't think.

@benlesh
Copy link
Member

benlesh commented Mar 13, 2017

@kwonoj confirmed... (a: A, b: B) => void matches (a: A) => void just fine in TS.

@kwonoj
Copy link
Member

kwonoj commented Mar 14, 2017

Thanks for confirmation. I'll check this in around today to tomorrow.

@kwonoj kwonoj merged commit 3d84a33 into ReactiveX:master Mar 16, 2017
@benlesh
Copy link
Member

benlesh commented Mar 16, 2017

Oops.... @kwonoj, we didn't want to merge this new feature until after we patched the existing minor.

@kwonoj
Copy link
Member

kwonoj commented Mar 16, 2017

@benlesh 😱 should this be reverted?

@benlesh
Copy link
Member

benlesh commented Mar 16, 2017

@kwonoj yes, please. What I'd like to do is merge all of the minor changes after I merge all of the patches. So we can publish 5.2.1 and 5.3.0 at the same time.

@benlesh
Copy link
Member

benlesh commented Mar 16, 2017

ugh.. so we're going to have to re-merge this later. :) @kwonoj can you open another PR with these changes? (no worries @martinsik, your github credit is already in the history :) )

@kwonoj
Copy link
Member

kwonoj commented Mar 16, 2017

Yup, will do.

@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants