Skip to content

async: missing "in waitable set" trap in sync {stream,future}.cancel-{read,write} and subtask.cancel #13690

Description

@lukewagner

Based on CM/#647, there are already traps for sync {stream,future}.{read,write} if the stream/future is already in a waitable sets, but this PR also added traps for {stream,future}.cancel-{read,write} and subtask.cancel which seem to be necessary for the same reason. test/async/trap-if-sync-and-waitable-set.wast I believe tests this (failing when it hits an unreachable instead of the intended trap).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIncorrect behavior in the current implementation that needs fixingwasm-proposal:component-model-asyncIssues related to the WebAssembly Component Model async proposal

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions