Skip to content

Conversation

@sebsto
Copy link
Collaborator

@sebsto sebsto commented Jan 1, 2026

This PR removes Sendable requirement on StreamingClosureHandler .

While analyzing code for the upcoming support of Lambda Managed Runtime, I found out that StreamingClosureHandler has Sendable requirement, which is not necessary.

Removing requirement doesn't require a major speed bump as the change is compatible with existing code.

@sebsto sebsto self-assigned this Jan 1, 2026
@sebsto sebsto added the 🆕 semver/minor Adds new public API. label Jan 1, 2026
@sebsto sebsto requested a review from Copilot January 1, 2026 16:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes unnecessary Sendable constraints from StreamingClosureHandler to prepare for upcoming Lambda Managed Runtime support. The changes relax concurrency requirements while maintaining API compatibility.

Key changes:

  • Removed & Sendable conformance from StreamingClosureHandler struct
  • Removed @Sendable annotation from the closure type used in the handler

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sebsto sebsto changed the title Remove unecessary Sendable constraint Remove unnecessary Sendable constraint Jan 1, 2026
@sebsto sebsto merged commit 4b4054d into main Jan 1, 2026
48 of 49 checks passed
@sebsto sebsto deleted the sebsto/remove_unecessary_sendable branch January 1, 2026 16:33
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.

1 participant