Skip to content

Conversation

@gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Aug 6, 2025

This PR adds missing availability annotations after removing platform requirements from the package manifest.
It also re-enables missing availability warnings in Xcode (which had been turned off). This was hiding a Sendability issue for some reason, but I'll fix that up in a follow-up PR since it's quite complex.

func intercept(
input: Input,
next: (NextInput) async throws -> Void
next: @Sendable (NextInput) async throws -> Void
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? I am not sure that this is the right annotation for those APIs. There is no guarantee that the next method is callable concurrently

func intercept(
input: Input,
next: (NextInput) async throws -> Void
next: @Sendable (NextInput) async throws -> Void
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here. I think this is a potential mistake. Maybe sending is okay here but not sure about @Sendable

@gjcairo gjcairo requested a review from FranzBusch August 6, 2025 14:51
@gjcairo gjcairo merged commit 5ffc0fe into main Aug 6, 2025
@gjcairo gjcairo deleted the availability-annotations branch August 6, 2025 15:11
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.

3 participants