alexcrichton requested wasmtime-core-reviewers for a review on PR #12797.
alexcrichton opened PR #12797 from alexcrichton:fix-host-task-cancel-again to bytecodealliance:main:
Incorrect behavior on Wasmtime's part led to erroneously raising a trap in the guest about the terminal status of a task being delivered already. This commit refactors some internals to ensure that cancelling a completed host task is not a failure, it instead just returns that the host task is indeed completed.
<!--
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
-->
alexcrichton requested cfallin for a review on PR #12797.
alexcrichton unassigned cfallin from PR #12797 cm-async: Fix cancelling a completed host task.
alexcrichton requested dicej for a review on PR #12797.
github-actions[bot] added the label wasmtime:api on PR #12797.
dicej submitted PR review.
alexcrichton added PR #12797 cm-async: Fix cancelling a completed host task to the merge queue.
alexcrichton merged PR #12797.
alexcrichton removed PR #12797 cm-async: Fix cancelling a completed host task from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC