Skip to content

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Apr 30, 2025

Motivation:

There are a couple of sendability warnings leftover in Sources.

Transaction moves a closure into a task. The closure isn't Sendable (and shouldn't be). However, higher up the stack there's a closure which generates the non-sendable closure which can be sendable.

Modifications:

  • Pass the sendable closure generating closure down rather
  • Add a few more explicit sendable annotations

Result:

Fewer warnings

Motivation:

There are a couple of sendability warnings leftover in Sources.

Transaction moves a closure into a task. The closure isn't Sendable (and
shouldn't be). However, higher up the stack there's a closure which
generates the non-sendable closure which can be sendable.

Modifications:

- Pass the sendable closure generating closure down rather
- Add a few more explicit sendable annotations

Result:

Fewer warnings
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Apr 30, 2025
@glbrntt glbrntt enabled auto-merge (squash) April 30, 2025 14:23
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Nice and straightforward.

@glbrntt glbrntt merged commit 6b5f8c9 into swift-server:main Apr 30, 2025
24 of 25 checks passed
@glbrntt glbrntt deleted the strict-a-few-more-from-sources branch April 30, 2025 15:48
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