Skip to content

Conversation

@sebastianmarr
Copy link

Since most other components have been updated to be Sendable and thread-safe already, I noticed the JWS signature creators were still missing. Since they are immutable already, there is no reason to not let them conform to Sendable.

As they were using classes, they needed to be converted into structs and use composition instead of inheritance for shared behavior. This keeps the API stable.

private let keyId: String
private let issuerId: String
private let bundleId: String
fileprivate struct JWSSignatureCreator: Sendable {
Copy link
Author

Choose a reason for hiding this comment

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

Changed visibility to fileprivate as the base class seemed not to be intended to be used directly.

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