Skip to content

Commit

Permalink
docs(tutorial): correct the default multiplier value
Browse files Browse the repository at this point in the history
  • Loading branch information
JOU-amjs committed Nov 29, 2024
1 parent 5d378fe commit b0e7f6d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Inherit all configurations from [**useRequest**](/api/core-hooks#userequest).
| Name | Description | Type | Default | Version |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------- | ------- |
| delay | Delay time for another request, in milliseconds | number | 1000 | - |
| multiplier | Specify the delay multiplier, for example, when multiplier is set to 2 and delay is 1 second, the first retry is 1 second, the second is 2 seconds, the third is 4 seconds, and so on | number | 0 | - |
| multiplier | Specify the delay multiplier, for example, when multiplier is set to 2 and delay is 1 second, the first retry is 1 second, the second is 2 seconds, the third is 4 seconds, and so on | number | 1 | - |
| startQuiver | The initial jitter percentage value of the delay request, ranging from 0-1. When only startQuiver is set, endQuiver defaults to 1. For example, if it is set to 0.5, it will increase the current delay time by 50% to 100% randomly Time, if endQuiver has a value, the delay time will be increased by a random value in the range of startQuiver and endQuiver | number | 0 | - |
| endQuiver | The jitter end percentage value of the delayed request, the range is 0-1, when onlyWhen endQuiver is set, startQuiver defaults to 0. For example, if it is set to 0.5, it will add a random time from 0% to 50% to the current delay time. If startQuiver has a value, the delay time will increase the random value in the range of startQuiver and endQuiver | number | 0 | - |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const handleStop = () => {
| 名称 | 描述 | 类型 | 默认值 | 版本 |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------ | ---- |
| delay | 再次请求的延迟时间,单位毫秒 | number | 1000 | - |
| multiplier | 指定延迟倍数,例如把 multiplier 设置为 2、delay 为 1 秒时,第一次重试为 1 秒,第二次为 2 秒,第三次为 4 秒,以此类推 | number | 0 | - |
| multiplier | 指定延迟倍数,例如把 multiplier 设置为 2、delay 为 1 秒时,第一次重试为 1 秒,第二次为 2 秒,第三次为 4 秒,以此类推 | number | 1 | - |
| startQuiver | 延迟请求的抖动起始百分比值,范围为 0-1,当只设置了 startQuiver 时,endQuiver 默认为 1,例如设置为 0.5,它将在当前延迟时间上增加 50%到 100%的随机时间,如果 endQuiver 有值,则延迟时间将增加 startQuiver 和 endQuiver 范围的随机值 | number | 0 | - |
| endQuiver | 延迟请求的抖动结束百分比值,范围为 0-1,当只设置了 endQuiver 时,startQuiver 默认为 0,例如设置为 0.5,它将在当前延迟时间上增加 0%到 50%的随机时间,如果 startQuiver 有值,则延迟时间将增加 startQuiver 和 endQuiver 范围的随机值 | number | 0 | - |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const handleStop = () => {
| 名称 | 描述 | 类型 | 默认值 | 版本 |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------ | ---- |
| delay | 再次请求的延迟时间,单位毫秒 | number | 1000 | - |
| multiplier | 指定延迟倍数,例如把 multiplier 设置为 2、delay 为 1 秒时,第一次重试为 1 秒,第二次为 2 秒,第三次为 4 秒,以此类推 | number | 0 | - |
| multiplier | 指定延迟倍数,例如把 multiplier 设置为 2、delay 为 1 秒时,第一次重试为 1 秒,第二次为 2 秒,第三次为 4 秒,以此类推 | number | 1 | - |
| startQuiver | 延迟请求的抖动起始百分比值,范围为 0-1,当只设置了 startQuiver 时,endQuiver 默认为 1,例如设置为 0.5,它将在当前延迟时间上增加 50%到 100%的随机时间,如果 endQuiver 有值,则延迟时间将增加 startQuiver 和 endQuiver 范围的随机值 | number | 0 | - |
| endQuiver | 延迟请求的抖动结束百分比值,范围为 0-1,当只设置了 endQuiver 时,startQuiver 默认为 0,例如设置为 0.5,它将在当前延迟时间上增加 0%到 50%的随机时间,如果 startQuiver 有值,则延迟时间将增加 startQuiver 和 endQuiver 范围的随机值 | number | 0 | - |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ Inherit all configurations from [**useRequest**](/api/core-hooks#userequest).
| Name | Description | Type | Default | Version |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------- | ------- |
| delay | Delay time for another request, in milliseconds | number | 1000 | - |
| multiplier | Specify the delay multiplier, for example, when multiplier is set to 2 and delay is 1 second, the first retry is 1 second, the second is 2 seconds, the third is 4 seconds, and so on | number | 0 | - |
| multiplier | Specify the delay multiplier, for example, when multiplier is set to 2 and delay is 1 second, the first retry is 1 second, the second is 2 seconds, the third is 4 seconds, and so on | number | 1 | - |
| startQuiver | The initial jitter percentage value of the delay request, ranging from 0-1. When only startQuiver is set, endQuiver defaults to 1. For example, if it is set to 0.5, it will increase the current delay time by 50% to 100% randomly Time, if endQuiver has a value, the delay time will be increased by a random value in the range of startQuiver and endQuiver | number | 0 | - |
| endQuiver | The jitter end percentage value of the delayed request, the range is 0-1, when onlyWhen endQuiver is set, startQuiver defaults to 0. For example, if it is set to 0.5, it will add a random time from 0% to 50% to the current delay time. If startQuiver has a value, the delay time will increase the random value in the range of startQuiver and endQuiver | number | 0 | - |

Expand Down

0 comments on commit b0e7f6d

Please sign in to comment.