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

[rc] Mark ConfigUpdateListenerRegistration Sendable #14244

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

paulb777
Copy link
Member

Fix #14215

Copy link
Contributor

Apple API Diff Report

Commit: a884b8a
Last updated: Wed Dec 11 11:18 PST 2024
View workflow logs & download artifacts


FirebaseRemoteConfig

Classes

[MODIFIED] FIRConfigUpdateListenerRegistration
[MODIFIED] FIRConfigUpdateListenerRegistration
Swift:
+  class ConfigUpdateListenerRegistration : NSObject , @unchecked Sendable
-  class ConfigUpdateListenerRegistration : NSObject
-    func remove ()
Objective-C:
+  @interface FIRConfigUpdateListenerRegistration : NSObject
-  @interface FIRConfigUpdateListenerRegistration : NSObject
-    - ( void ) remove ;

@paulb777
Copy link
Member Author

Presumably a bug in the API checker showing the removal of remove ?

@paulb777 paulb777 requested a review from ncooke3 December 11, 2024 19:25
Copy link
Member

@ncooke3 ncooke3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may generally be safe, but the class retains a RCNRealtime instance which should be marked as Sendable. I'm looking at the requirements from https://developer.apple.com/documentation/swift/sendable#Sendable-Classes

I'll give the RCNRealtime implementation a scan to see if it looks thread-safe.

@paulb777 paulb777 added this to the 11.7.0 - M158 milestone Dec 11, 2024
@paulb777 paulb777 merged commit b372ee7 into main Dec 11, 2024
47 checks passed
@paulb777 paulb777 deleted the pb-rc-listener-sendable branch December 11, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Is FIRConfigUpdateListenerRegistration thread-safe? If not, can it be made thread-safe and Sendable?
3 participants