Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift6 migration #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Swift6 migration #23

wants to merge 4 commits into from

Conversation

Anteo95
Copy link
Contributor

@Anteo95 Anteo95 commented Jan 20, 2025

This PR migrates the library to Swift6.

The PR consist of 4 commits:

  1. Adds Sendable annotation to public structs where it makes sense and fix concurrency safety warnings of singletons.
  2. Restate @unchecked Sendable where needed
  3. Fix tests by migrating to await fulfillment instead of waitForExpectations since waitForExpectations has @mainactor annotation.
  4. Remove Any as associated value from HalleyKit.Error since Any does not conform to sendable.

The last change is probably not what we want since it is beneficial to provide some sort of Data that can be logged by the users of this library in case an error occurs at some point. My idea would be to use Data as associated value instead of Any if possible but I would like to hear other options if there are any before doing this.

@Anteo95 Anteo95 added the enhancement New feature or request label Jan 20, 2025
@Anteo95 Anteo95 changed the title Feature/swift6 migration Swift6 migration Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants