Skip to content

Clean up helper task in AsyncReadStream faster#13105

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:cleanup-task-faster
Apr 14, 2026
Merged

Clean up helper task in AsyncReadStream faster#13105
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:cleanup-task-faster

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

The previous implementation would hit EOF on the input object, then hit EOF again, and then block on sending a value over the channel. There's no need for the task to stick around and infinitely generate EOF messages, however, so exit the task as soon as the first EOF is hit and a message is sent.

This was originally submitted as #13061 but then closed without any further communication. Nevertheless this seems like a prudent issue to fix.

The previous implementation would hit EOF on the input object, then hit
EOF again, and then block on sending a value over the channel. There's
no need for the task to stick around and infinitely generate EOF
messages, however, so exit the task as soon as the first EOF is hit and
a message is sent.
@alexcrichton alexcrichton requested a review from a team as a code owner April 14, 2026 22:31
@alexcrichton alexcrichton enabled auto-merge April 14, 2026 22:41
@alexcrichton alexcrichton added this pull request to the merge queue Apr 14, 2026
Merged via the queue into bytecodealliance:main with commit 488891e Apr 14, 2026
48 checks passed
@alexcrichton alexcrichton deleted the cleanup-task-faster branch April 14, 2026 23:07
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.

2 participants