Skip to content

Call channel initializer when using async methods on pipe bootstrap #3309

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 2 commits into from
Jul 18, 2025

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Jul 17, 2025

Motivation:

For our async initializers on bootstraps, it's imortant that both channel initializers are called, not only the one that comes as an argument on the bind function.

Modifications:

Fix the takeOwnershipOfDescriptor async functions to call the initializer from the bootstrap, and add regression tests.

Result:

Better behaved code.

Motivation:

For our async initializers on bootstraps, it's imortant that _both_
channel initializers are called, not only the one that comes as an
argument on the bind function.

Modifications:

Fix the takeOwnershipOfDescriptor async functions to call the initializer
from the bootstrap, and add regression tests.

Result:

Better behaved code.
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Jul 17, 2025
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Oops! Nice catch.

@glbrntt glbrntt merged commit ee67a96 into apple:main Jul 18, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants