Pause and Resume WebAssembly with Binaryen's Asyncify
kripken.github.io
kripken.github.io
Oh nice, is this code (or a write-up) available anywhere?
A couple of years ago I was working on porting Wesnoth and got it working...except it was too slow with the Emterpreter.
I'll try this new asyncify, but your approach sounds like an interesting backup if I were to resurrect my efforts.
[1] https://gist.github.com/SpaceManiac/79a507858fbe3946a0c40e99...
[2] https://github.com/SpaceManiac/HamSandwich/blob/emscripten/s...