Skip to content
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

feat: support error context in stream/error operations #1149

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vados-cosmonic
Copy link
Contributor

No description provided.

Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

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

I haven't had time to look at this super thoroughly yet, but looking good so far. See comments inline.

crates/guest-rust/rt/src/async_support.rs Show resolved Hide resolved
crates/guest-rust/rt/src/async_support.rs Outdated Show resolved Hide resolved
@vados-cosmonic vados-cosmonic requested a review from dicej January 30, 2025 17:25
Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

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

LGTM, but let's hold off merging this until we have some end-to-end test coverage in (your or my branch of) Wasmtime, e.g. tests that exercise closing with an error and verifying the reader receives it. We should test both the "local" case (i.e. when the same component instance has both ends of the stream/future) and the "remote" case (where the reader and writer ends are owned by different component instances).

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