Replies: 1 comment 5 replies
-
As of now resumable calls can only be resumed for errors originating from called host functions. If an |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to call a Wasm function using the relatively new
call_resumable
feature, while at the same time use theConfig::consume_fuel(true)
feature. When the VM runs out of fuel, I would like the execution to be interrupted so that I can resume it later.My question is: how do these two features work together?
I can see two options, and I don't know which one to expect.
OutOfFuel
trap happens,call_resumable
returns aResumableCall::Resumable
where thehost_error
lets me know what kind of trap happened. In that situation, does that mean that every trap leads toResumableCall::Resumable
?OutOfFuel
trap happens,call_resumable
returns an error. However, in that situation, I don't know how to resume the execution if I simply want to re-fuel the store and ignore the trap.Thanks for the help
Beta Was this translation helpful? Give feedback.
All reactions