-
Notifications
You must be signed in to change notification settings - Fork 3k
add index to delayWhen selector #2388
Copy link
Copy link
Closed
Labels
featurePRs and issues for featuresPRs and issues for featureshelp wantedIssues we wouldn't mind assistance with.Issues we wouldn't mind assistance with.
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featurePRs and issues for featuresPRs and issues for featureshelp wantedIssues we wouldn't mind assistance with.Issues we wouldn't mind assistance with.