Stream: wasmtime

Topic: wasi:io/poll blocking?


view this post on Zulip Ashanti Mutinta (Mar 07 2024 at 19:22):

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?

view this post on Zulip Lann Martin (Mar 07 2024 at 19:36):

Epoch interruption only applies to actively executing wasm. You can combine it with async cancellation for a more complete timeout feature

view this post on Zulip Ashanti Mutinta (Mar 07 2024 at 19:36):

That makes sense. Worked after I placed it in a timeout

view this post on Zulip Ashanti Mutinta (Mar 07 2024 at 19:37):

Do you think it might be worth to put this in the docs? Seems like a gotcha

view this post on Zulip Lann Martin (Mar 07 2024 at 19:39):

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

view this post on Zulip Ashanti Mutinta (Mar 07 2024 at 19:40):

Awesome! Thank you very much and thank you for the great work in this project!


Last updated: Nov 22 2024 at 17:03 UTC