-
Hi, first of all thanks for emscripten, it is so great! What happens if we call an asynchronous wasm function while the wasm VM is busy? For example, consider you have two C functions named MyWasmModule.ccall('heavy_stuff_1', [], [], [], { async: true });
MyWasmModule.ccall('heavy_stuff_2', [], [], [], { async: true }); I mean, the If yes we could do this: await Promise.all([MyWasmModule.ccall('heavy_stuff_1', [], [], [], { async: true }), MyWasmModule.ccall('heavy_stuff_2', [], [], [], { async: true })]); Thank you for your time and have a great day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
IIUC this doesn't work, and asyncify only supports one suspended task at a time. Is that correct @kripken? Do we detect this type of thing in debug builds and report an error? |
Beta Was this translation helpful? Give feedback.
IIUC this doesn't work, and asyncify only supports one suspended task at a time. Is that correct @kripken? Do we detect this type of thing in debug builds and report an error?