Skip to content

Conversation

@glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Mar 27, 2025

Motivation:

The HTTP2StreamMultiplexer isn't Sendable, but it has public API for creating streams which must operate from off of the EventLoop.

Modifications:

  • Add a SendableView over the multiplexer which only provides the methods for creating streams. These are safe to call from any isolation domain.

Result:

Can create streams from off of the EL.

Motivation:

The HTTP2StreamMultiplexer isn't `Sendable`, but it has public API for
creating streams which must operate from off of the `EventLoop`.

Modifications:

- Add a `SendableView` over the multiplexer which only provides the
  methods for creating streams. These are safe to call from any
  isolation domain.

Result:

Can create streams from off of the EL.
@glbrntt glbrntt added the 🆕 semver/minor Adds new public API. label Mar 27, 2025
@glbrntt glbrntt requested a review from rnro March 27, 2025 14:05
@glbrntt glbrntt enabled auto-merge (squash) March 27, 2025 14:08
@glbrntt glbrntt merged commit 276b9cb into apple:main Mar 27, 2025
37 checks passed
@glbrntt glbrntt deleted the strict-concurrency-sendable-view branch March 27, 2025 14:10
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