Skip to content

Conversation

@asteurer
Copy link
Contributor

No description provided.

Signed-off-by: Andrew Steurer <94206073+asteurer@users.noreply.github.com>
@asteurer asteurer requested a review from ricochet January 28, 2026 20:12
@asteurer asteurer merged commit 286ba0d into bytecodealliance:main Jan 28, 2026
5 checks passed
@asteurer asteurer deleted the pkg branch January 28, 2026 20:50
}
pinner.Pin(buffer)

code, count := wit_async.FutureOrStreamWait(self.vtable.Read(handle, buffer, uint32(len(dst))), handle)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this handles cancellation. Falls through to return count even for unexpected return codes. Consider adding an explicit panic or error handling for unknown codes.

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