Skip to content

Adjust for SendableMetatype #3266

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

Merged
merged 5 commits into from
Jun 13, 2025
Merged

Adjust for SendableMetatype #3266

merged 5 commits into from
Jun 13, 2025

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jun 11, 2025

Motivation

With the introduction of isolated conformances, it has become necessary to start managing the use of metatypes for some of our protocols. In general, we don't want to force the relevant protocols to only be conformed in non-isolated forms. Instead, we just want to make the specific APIs non-usable.

Modifications

  • Add shims for SendableMetatype that only use it when it is available.
  • Require SendableMetatype where needed, gated by @preconcurrency.

Result

We continue to be safe.

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jun 11, 2025
@Lukasa Lukasa force-pushed the cb-fix-62-warnings branch from f89177e to b6777f3 Compare June 11, 2025 13:19
Lukasa added 5 commits June 12, 2025 16:47
Motivation

With the introduction of isolated conformances, it has become
necessary to start managing the use of metatypes for some of
our protocols. In general, we don't want to force the relevant
protocols to only be conformed in non-isolated forms. Instead,
we just want to make the specific APIs non-usable.

Modifications

- Add shims for SendableMetatype that only use it when it is
    available.
- Require SendableMetatype where needed, gated by @preconcurrency.

Result

We continue to be safe.
@Lukasa Lukasa force-pushed the cb-fix-62-warnings branch from 0c99b0b to 7fa7b29 Compare June 12, 2025 15:48
@Lukasa Lukasa merged commit c9e2ac1 into apple:main Jun 13, 2025
39 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants