Replies: 1 comment 1 reply
-
Good question. I'm not sure we have anything out-of-the box that does this. We do provide a lot of the pieces to build it yourself (i.e. proxying.h and promise.h), but maybe its something we could add more directly. @tlively WDYT? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm looking for best practices to provide non-blocking calls to long running computations. Right now we instantiate the WASM module in a new web-worker and use message passing and promises to call functions. Which works, but we need some boilerplate code for this to work.
Does Emscripten support to always wrap function calls with a promise and execute them in a separate worker? Something like
PROXY_TO_PTHREAD
but for functions? No reentrance and only a single worker with synchronous execution inside.Thanks and greetings from Berlin
Sven
Beta Was this translation helpful? Give feedback.
All reactions