Skip to content

async: cancellable thread.yield not directly resumed by subtask.cancel #13269

@lukewagner

Description

@lukewagner

This seems low-priority, but test/async/cancellable.wast in the CM repo main branch has a test case that currently fails on dev Wasmtime that I believe should pass. It tests whether thread.yield with cancellable set is directly resumed by subtask.cancel (allowing it to eagerly cancel itself, rather saving a "pending cancellation" that gets delivered some time later). Currently, subtask.cancel returns BLOCKED (-1), which suggests that the cancellable is not being considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions