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

Add stdin/stdout/stderr streams to WasiRunner and only use async threading when requested #4186

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

While working on wasmerio/wasmer-js#328, I noticed that we don't have a way to intercept the stdin, stdout, and stderr streams of a WasiRunner.

I've also made it so we only use async threading when it is explicitly requested. Using async threads in the browser triggers #4158 because it uses things like task_dedicated() and resume_wasm_after_poller() which may smuggle !Send types to background threads.

@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review August 28, 2023 15:25
Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

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

lgtm

Michael-F-Bryan pushed a commit to wasmerio/wasmer-js that referenced this pull request Aug 28, 2023
@Michael-F-Bryan Michael-F-Bryan merged commit a4d23a3 into master Aug 28, 2023
@Michael-F-Bryan Michael-F-Bryan deleted the wasi-runner-fixes branch August 28, 2023 17:22
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.

3 participants