Skip to content

make BaseSocketChannel less generic#3419

Open
weissi wants to merge 1 commit intoapple:mainfrom
weissi:jw-less-generic
Open

make BaseSocketChannel less generic#3419
weissi wants to merge 1 commit intoapple:mainfrom
weissi:jw-less-generic

Conversation

@weissi
Copy link
Copy Markdown
Member

@weissi weissi commented Oct 22, 2025

Motivation:

I have seen a bunch of generic metadata instantiation in BaseStreamSocketChannel.bufferPendingWrite(data:promise:) and I think that's unnecessary.

Modifications:

  • Introduce a generic WriteType to BaseSocketChannel

Result:

  • Should do less with generic metadata as it's travelling less across the Channel class hierarchy.

@weissi weissi requested a review from Lukasa October 22, 2025 14:27
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.

1 participant