rvolosatovs opened PR #7099 from rvolosatovs:feat/preview2_poll_oneoff
to bytecodealliance:main
:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->Implement preview1
poll_oneoff
in the host adapter in terms of preview2 functionality.Note, the difference in realtime clock timeout computation from https://github.com/bytecodealliance/wasmtime/blob/96f00830e7c16e283c06cd059a71ce832ed5f3e8/crates/wasi-preview1-component-adapter/src/lib.rs#L1695-L1722. It's largely the same, but handles more edge cases with less potential for errors.
I am happy to adapt the component adapter with the same logic if you agree with the change
rvolosatovs updated PR #7099.
rvolosatovs updated PR #7099.
rvolosatovs has marked PR #7099 as ready for review.
rvolosatovs requested pchickey for a review on PR #7099.
rvolosatovs requested wasmtime-core-reviewers for a review on PR #7099.
rvolosatovs updated PR #7099.
rvolosatovs updated PR #7099.
rvolosatovs updated PR #7099.
rvolosatovs has marked PR #7099 as ready for review.
alexcrichton submitted PR review:
Thanks again for this!
alexcrichton merged PR #7099.
Last updated: Nov 22 2024 at 16:03 UTC