Skip to content

Commit d5bbfc5

Browse files
committed
Update README.md
1 parent 3767380 commit d5bbfc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Timeout can be installed by using Swift Package Manager.
1515
To 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
4646
try 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))

0 commit comments

Comments
 (0)