Skip to content

cm-async: Fix cancelling a completed host task#12797

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-host-task-cancel-again
Mar 18, 2026
Merged

cm-async: Fix cancelling a completed host task#12797
alexcrichton merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-host-task-cancel-again

Conversation

@alexcrichton
Copy link
Member

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.

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.
@alexcrichton alexcrichton requested a review from a team as a code owner March 18, 2026 03:54
@alexcrichton alexcrichton requested review from cfallin and dicej and removed request for a team and cfallin March 18, 2026 03:54
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Mar 18, 2026
@alexcrichton alexcrichton added this pull request to the merge queue Mar 18, 2026
Merged via the queue into bytecodealliance:main with commit e8cb875 Mar 18, 2026
46 checks passed
@alexcrichton alexcrichton deleted the fix-host-task-cancel-again branch March 18, 2026 14:07
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Mar 18, 2026
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.
alexcrichton added a commit that referenced this pull request Mar 19, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants