We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dda0573 commit 46ded00Copy full SHA for 46ded00
README.md
@@ -13,16 +13,16 @@ There are two strategies
13
/// Constant delay between retries
14
case constant(
15
retry : UInt = 5,
16
- duration: DispatchTimeInterval = .seconds(2),
17
- timeout: DispatchTimeInterval = .seconds(Int.max)
+ duration: DispatchTimeInterval,
+ timeout: DispatchTimeInterval
18
)
19
20
/// Exponential backoff is a strategy in which you increase the delays between retries
21
case exponential(
22
retry : UInt = 3,
23
multiplier: Double = 2.0, // power exponent
24
25
26
27
28
```
0 commit comments