File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Timeout can be installed by using Swift Package Manager.
15
15
To install using Swift Package Manager, add this to the ` dependencies: ` section in your Package.swift file:
16
16
17
17
``` swift
18
- .package (url : " https://github.com/swhitty/swift-timeout.git" , .upToNextMajor (from : " 0.2 .0" ))
18
+ .package (url : " https://github.com/swhitty/swift-timeout.git" , .upToNextMajor (from : " 0.3 .0" ))
19
19
```
20
20
21
21
# Usage
@@ -40,7 +40,7 @@ let val = try await withThrowingTimeout(seconds: 2.0) {
40
40
41
41
> Note: When the timeout expires the task executing the closure is cancelled and ` TimeoutError ` is thrown.
42
42
43
- An overload includes the ` Timeout ` object that allows the body to cancel or move the expiration if required:
43
+ An overload includes a ` Timeout ` object allowing the body to cancel or move the expiration where required:
44
44
45
45
``` swift
46
46
try await withThrowingTimeout (seconds : 1.0 ) { timeout in
@@ -62,6 +62,6 @@ for try await val in sequence.timeout(seconds: 2.0) {
62
62
63
63
# Credits
64
64
65
- Timeout is primarily the work of [ Simon Whitty] ( https://github.com/swhitty ) .
65
+ ** swift-timeout ** is primarily the work of [ Simon Whitty] ( https://github.com/swhitty ) .
66
66
67
67
([ Full list of contributors] ( https://github.com/swhitty/swift-timeout/graphs/contributors ) )
You can’t perform that action at this time.
0 commit comments