Skip to content

Commit 989b2c8

Browse files
authored
Update README.md
1 parent 4553afe commit 989b2c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ try await withThrowingTimeout(seconds: 1.0) { timeout in
4747
try await foo()
4848
timeout.cancelExpiration()
4949
try await bar()
50-
timeout.expire(after: 0.5)
50+
timeout.expire(after: .seconds(0.5))
5151
try await baz()
5252
}
5353
```

0 commit comments

Comments
 (0)