Skip to content

Is there a way to interrupt WASM code execution? #122

Description

@lounres

I am playing with chasm and I am thinking to use it for my own plugin system that runs plugins compiled in WASM. But I wonder if there is a way to interrupt plugin's execution when user does not want to wait for the plugin finishing its work.

Right now, I don't see an API in chasm for this. So will there be such API in the future?

For a simple example, the invoke function could have a suspend overload that listens to its Job's cancellation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions