Seems like I have a weird issue where when I set up epoch counting and I call poll on a subscribe_duration it ends up not trapping so I essentially loop forever. I'm using async wasmtime as well. Wondering if anyone has come across this?
Epoch interruption only applies to actively executing wasm. You can combine it with async cancellation for a more complete timeout feature
That makes sense. Worked after I placed it in a timeout
Do you think it might be worth to put this in the docs? Seems like a gotcha
That would make sense to me. Could add one more sentence to this novel: https://docs.rs/wasmtime/latest/wasmtime/struct.Config.html#method.epoch_interruption
Awesome! Thank you very much and thank you for the great work in this project!
Last updated: Nov 22 2024 at 17:03 UTC