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

Add Support for Swift Concurrency #201

Open
Mackarous opened this issue Jul 25, 2024 · 2 comments
Open

Add Support for Swift Concurrency #201

Mackarous opened this issue Jul 25, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Mackarous
Copy link

Summary

Currently, if using the SDK in a project that enables strict concurrency checking, Xcode will complain that the Amplitude object is not marked as Sendable and is not concurrency safe.

To circumvent these warnings (which may become errors in Swift 6), we can mark the library as @preconcurrency

@preconcurrency import AmplitudeSwift

Motivations

Swift Concurrency is becoming a large part of the Swift language, and moving into 6.0 will be important to add support. This might mean exposing a different kind of object, or migrating the Amplitude class itself to an actor.

@Mackarous Mackarous added the enhancement New feature or request label Jul 25, 2024
@crleona
Copy link
Collaborator

crleona commented Aug 10, 2024

Hi @Mackarous - this is planned but we do not yet have an ETA.

@tareksabry1337
Copy link

@crleona Xcode 16 is around the corner, any plans to get this done?

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

No branches or pull requests

3 participants