Skip to content

Conversation

@gwynne
Copy link
Member

@gwynne gwynne commented Sep 8, 2025

The SendableMetatype thing I did in the previous PR wasn't quite right. This fixes it.

@gwynne gwynne requested review from 0xTim, MahdiBM and ptoffy September 8, 2025 08:33
public typealias _SQLKitExtrasSendableMetatype = Any
#endif

extension FluentKit.FieldProperty: _SQLKitExtrasSendableMetatype {}
Copy link

Choose a reason for hiding this comment

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

Removed this one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. Once the protocol became a typealias, it wasn't needed; the Sendable on the original property covered it all along. Now the addition is only made to the property wrappers that aren't already Sendable (it's still not a great solution, but Fluent 4 is a hopeless mess for Concurrency anyway).

@gwynne gwynne merged commit 9619f0f into main Sep 8, 2025
10 checks passed
@gwynne gwynne deleted the sendability-of-metatypes branch September 8, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants