Skip to content

Modernize concurrency: Swift 6 mode, safety fixes, README rewrite - #1

Merged
ANSCoder merged 1 commit into
masterfrom
swift-concurrency-modernization
Oct 27, 2026
Merged

ANSCoder merged 1 commit into
masterfrom
swift-concurrency-modernization

Conversation

@ANSCoder

Copy link
Copy Markdown
Owner
  • 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

- 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>
@ANSCoder
ANSCoder merged commit 5cb33ab into master Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant