Replies: 2 comments
-
While I'm here, I might as well ask about the soundness of my overall strategy:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
If
Doing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is this valid?
Module.ccall('mainloop', null, [], []).then(() =>
(insert code here)...Chrome complains that 'then' can't read properties of undefined. If I can't do that, how do I call something only after mainloop finishes?(I know the normal thing to do is to use EMSCRIPTEN_SET_MAINLOOP or whatever it's called, but I'm not updating the canvas from C++/the wasm program, I want to do it in JavaScript (reading info generated by the wasm), so I'm not sure if I should try to do it that way..)
Beta Was this translation helpful? Give feedback.
All reactions