-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ServerTimestamp<T> could be sendable if T is Sendable #14042
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @jesus-mg-ios, thank you for raising this issue. Could you please provide more details on it? |
Sure, imagine that you got a variable So it would be nice, that if Date, (that it is ) is sendable, then ServerTimestamp could be Sendable Something like this |
Hi @jesus-mg-ios, improving Sendable conformance in the SDK is certainly on our radar, but it is deprioritized for now. I've added your request to our backlog so we can consider it for future development. Googlers please see b/378477431. Thank you again for bringing this to our attention. I'll close the issue for now and will update it if there are any changes. |
Reopening since we are investigating better Swift Concurrency support across Firebase and we can consider this request in that effort. |
@jesus-mg-ios, thanks again for the report! This will go out in the next release. I'll be continuing to improve the Swift 6 experience in future releases (e.g. #14163, etc.). |
Description
ServerTimestamp is not sendable, while T generic parameter like Date could be sendable.
Reproducing the issue
No response
Firebase SDK Version
11.2.0
Xcode Version
16.1
Installation Method
Swift Package Manager
Firebase Product(s)
Firestore
Targeted Platforms
iOS
Relevant Log Output
.
If using Swift Package Manager, the project's Package.resolved
No response
If using CocoaPods, the project's Podfile.lock
No response
The text was updated successfully, but these errors were encountered: