From cec4a2630ecf167ca94731ec6d81325bf41da504 Mon Sep 17 00:00:00 2001 From: Sijawusz Pur Rahnama Date: Thu, 4 Jul 2024 02:21:47 +0200 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a54a93..48dc601 100644 --- a/README.md +++ b/README.md @@ -150,7 +150,7 @@ Retriable.retry(times: 5, base_interval: 1.second, multiplier: 1.0, rand_factor: end ``` -This works by starting at a 1 second `base_interval`. Setting the `multiplier` to 1.0 means each subsequent try will increase 1x, which is still `1.0` seconds, and then a `rand_factor` of 0.0 means that there's no randomization of that interval. (By default, it would randomize 0.5 seconds, which would mean normally the intervals would randomize between 0.75 and 1.25 seconds, but in this case `rand_factor` is basically being disabled.) +This works by starting at a 1 second `base_interval`. Setting the `multiplier` to 1.0 means each subsequent try will increase 1x, which is still `1.0` seconds, and then a `rand_factor` of 0.0 means that there's no randomization of that interval. (By default, it would randomize 0.5 seconds, which would mean normally the intervals would randomize between 0.5 and 1.5 seconds, but in this case `rand_factor` is basically being disabled.) Same thing can be done by passing `backoff: false` option. @@ -202,7 +202,7 @@ begin # some code end rescue ex - # run this if retriable ends up re-rasing the exception + # run this if retriable ends up re-raising the exception else # run this if retriable doesn't raise any exceptions ensure