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.
1515To install using Swift Package Manager, add this to the ` dependencies: ` section in your Package.swift file:
1616
1717``` 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" ))
1919```
2020
2121# Usage
@@ -40,7 +40,7 @@ let val = try await withThrowingTimeout(seconds: 2.0) {
4040
4141> Note: When the timeout expires the task executing the closure is cancelled and ` TimeoutError ` is thrown.
4242
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:
4444
4545``` swift
4646try await withThrowingTimeout (seconds : 1.0 ) { timeout in
@@ -62,6 +62,6 @@ for try await val in sequence.timeout(seconds: 2.0) {
6262
6363# Credits
6464
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 ) .
6666
6767([ Full list of contributors] ( https://github.com/swhitty/swift-timeout/graphs/contributors ) )
You can’t perform that action at this time.
0 commit comments