Replies: 1 comment 4 replies
-
Maybe the solution would simply to enable |
Beta Was this translation helpful? Give feedback.
4 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.
-
I don't know how other people use emscripten but when I call a C function from JS, most of the time the function is quite "heavy" (at least a few ms). I use it a bit like a backend. So in this case I don't want to block my JS main thread.
I mean, an option to expose a synchronous version as well as an asynchronous version of the exported function could be a good idea. Thereby, in the JS code, when we want to block the JS main thread we use the synchronous version, and want we want a Promise we use the asynchronous version.
Of course, it would increase the output but I think it could be ok.
Beta Was this translation helpful? Give feedback.
All reactions