We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4553afe commit 989b2c8Copy full SHA for 989b2c8
README.md
@@ -47,7 +47,7 @@ try await withThrowingTimeout(seconds: 1.0) { timeout in
47
try await foo()
48
timeout.cancelExpiration()
49
try await bar()
50
- timeout.expire(after: 0.5)
+ timeout.expire(after: .seconds(0.5))
51
try await baz()
52
}
53
```
0 commit comments