-
-
Notifications
You must be signed in to change notification settings - Fork 6
Breaking changes in major version upgrades
Ben Hutchison edited this page Sep 26, 2026
·
9 revisions
-
BeforeRetryandIsRetryAllowedfunctions now take an attempt number argument, in addition to the preexistingExceptionargument. - Encapsulated optional parameters in structs
RetryOptionsandAsyncRetryOptions, to make reuse simple by callers and the growing number of parameters easier to deal with for everyone. - The default number of attempts if you specify neither
MaxAttemptsnorMaxOverallDurationis now infinity instead of 2, because 2 wouldn't make sense with the newMaxOverallDurationoption. - Attempt numbers are now
longinstead ofint. - Moved
Retrierinto theThrottleDebounce.Retrysub-namespace, to make code completion on theRetrierclass cleaner.
- They both now return a
RateLimitedActionorRateLimitedFuncon which you callInvoke(), instead of aDebouncedActionorDebouncedFuncon which you callRun().