WebAssembly / wasm-c-api

Wasm C API prototype
Apache License 2.0
534 stars 77 forks source link

API to Terminate Execution for a wasm::Store #171

Open chaoqin-li1123 opened 2 years ago

chaoqin-li1123 commented 2 years ago

v8::Isolate has a TerminateExecution() method which allow forceful termination of execution for the v8::Isolate. Does it make sense to expose this api in wasm-c-api since there is a mapping between v8 Isolate and wasm Store? It would be a useful feature because there are scenarios where we want to terminate a long running wasm execution(maybe in a dead loop)