wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Interruptible timeout in wasm

Open redoC-A2k opened this issue 2 months ago • 3 comments

I want to wait / sleep or run a function after timeout of some seconds in wasm32-wasi component ? But I want that to be cancellable . I tried doing this - https://stackoverflow.com/a/70121550 But I got error - failed to spawn thread: Error { kind: Unsupported, message: "operation not supported on this platform" } on spawning thread , I have tried compiling my rust to wasm32-wasip1-threads and on host I have make sure to enable wasm_threads support by config.wasm_threads(true).

What else do I need to do ?

redoC-A2k avatar May 23 '24 14:05 redoC-A2k