Skip to content

Commit

Permalink
Fixed DecorrelatedJitterBackoffV2 parameter in doc (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolan authored and reisenberger committed Dec 18, 2019
1 parent 79224cf commit 3a835a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -106,7 +106,7 @@ One way to address this is to add some randomness to the wait delay. This will c

Following [exploration by Polly community members](https://github.com/App-vNext/Polly/issues/530), we now recommend a new jitter formula characterised by very smooth and even distribution of retry intervals, a well-controlled median initial retry delay, and broadly exponential backoff.

var delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstDelay: TimeSpan.FromSeconds(1), retryCount: 5);
var delay = Backoff.DecorrelatedJitterBackoffV2(medianFirstRetryDelay: TimeSpan.FromSeconds(1), retryCount: 5);

var retryPolicy = Policy
.Handle<FooException>()
Expand Down

0 comments on commit 3a835a7

Please sign in to comment.