Skip to content

Commit 46ded00

Browse files
committed
Update README.md
1 parent dda0573 commit 46ded00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ There are two strategies
1313
/// Constant delay between retries
1414
case constant(
1515
retry : UInt = 5,
16-
duration: DispatchTimeInterval = .seconds(2),
17-
timeout: DispatchTimeInterval = .seconds(Int.max)
16+
duration: DispatchTimeInterval,
17+
timeout: DispatchTimeInterval
1818
)
1919

2020
/// Exponential backoff is a strategy in which you increase the delays between retries
2121
case exponential(
2222
retry : UInt = 3,
2323
multiplier: Double = 2.0, // power exponent
24-
duration: DispatchTimeInterval = .seconds(2),
25-
timeout: DispatchTimeInterval = .seconds(Int.max)
24+
duration: DispatchTimeInterval,
25+
timeout: DispatchTimeInterval
2626
)
2727

2828
```

0 commit comments

Comments
 (0)