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

add index to delayWhen selector #2388

Closed
Dorus opened this issue Feb 18, 2017 · 2 comments
Closed

add index to delayWhen selector #2388

Dorus opened this issue Feb 18, 2017 · 2 comments
Labels
feature PRs and issues for features help wanted Issues we wouldn't mind assistance with.

Comments

@Dorus
Copy link

Dorus commented Feb 18, 2017

Most operators include the index of the current element in the selector function For example lter(predicate: function(value: T, **index**: number) and mergeMap(project: function(value: T, **?index**: number).

delayWhen however is missing the index:

public delayWhen(delayDurationSelector: function(value: T): Observable, subscriptionDelay: Observable): Observable

However, it would be especially useful if delayDurationSelector included the index. That would make it easy to create an incremental delay, for example when delayWhen is combined with retryWhen.

@macklinu
Copy link

macklinu commented Apr 5, 2019

Was this resolved by #2473? Anything else left to do here?

@cartant
Copy link
Collaborator

cartant commented Apr 5, 2019

Was this resolved by #2473?

That seems to be the case, yes.

@cartant cartant closed this as completed Apr 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature PRs and issues for features help wanted Issues we wouldn't mind assistance with.
Projects
None yet
Development

No branches or pull requests

4 participants