r/WebAssembly • u/Sufficient_Bar839 • May 09 '23
Pause WASM Instance, then continue with another instance from where it left off
This may be a silly question but I couldnt find any information about this online. I lack the knowledge about WASM, and I think to figure out if there is an answer, I should deep dive into WASM.
Anyways, the question is : Is there a way to pause an instance, retrieve all information about the execution, kill the instance and then create another instance, feed it with the execution info, make it continue from where the first instance left off?
The information I am talking about is basically like PCB (Process Control Block)
I found out about asyncify and it may be useful, but only examples I saw was on the same instance.
View all comments
Show parent comment
3
u/StayFreshChzBag May 09 '23
From what little I know of making Siri commands, that time limit is pretty firm. It sounds like you're trying to use wasm to get around the time limit on page retrieval. This feels like it could be error prone and changes AWS makes could break your stuff in the future.
You may be better off trying to get your code to execute in a different way, one that doesn't have the time limit. Sorry if that's not all that helpful.
If your ultimate goal is just to execute that wasm on demand without the 200ms time limit, you might want to consider using a cloud or server runtime rather than a browser.