Repository navigation
Commit e0dbecd
Modernize concurrency: Swift 6 mode, safety fixes, README rewrite
- Move package to swift-tools 6.0 with Swift 6 language mode
- Retry: saturate exponential backoff (no overflow trap), drop force
unwrap, use Task.sleep(for:), inherit caller isolation via #isolation
- SingleFlight: propagate cancellation with waiter counting; guard
cleanup by flight identity; remove dead AnyFlight protocol
- AsyncLifetime: drop finished tasks so they don't accumulate
- AsyncTask: lock-protect ownership and completion state
- README: correct examples (weak self, MainActor hops), Swift 6 reqs
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>1 parent ca50bb1 commit e0dbecd
7 files changed
Lines changed: 247 additions & 242 deletions
File tree
- Sources/AsyncGuardKit
- Core
- Execution
- Policies
- Scope
- Tests/AsyncGuardKitTests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 26 | + | |
33 | 27 | | |
34 | | - | |
| 28 | + | |
| 29 | + | |
35 | 30 | | |
0 commit comments