-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Asyncify and postRun() #12402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You might be able to use |
Asyncify ends up calling To prevent program from exiting, Asyncify sets Appending a function into |
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
bump |
await callMain(), which is an async function if JSPI is enabled. Fixes emscripten-core#12402.
Make doRun() be async when JSPI is enabled. await callMain(), which is similarly an async function when JSPI is enabled. Fixes emscripten-core#12402.
Make doRun() be async when JSPI is enabled. await callMain(), which is similarly an async function when JSPI is enabled. Fixes emscripten-core#12402.
Make doRun() be async when JSPI is enabled. await callMain(), which is similarly an async function when JSPI is enabled. Fixes emscripten-core#12402.
Make doRun() be async when JSPI is enabled. await callMain(), which is similarly an async function when JSPI is enabled. Fixes emscripten-core#12402.
I noticed that when using Asyncify, the
Module.postRun()
only runs once after the first call ofemscripten_sleep()
. Is this behaviour expected? Ideally we want thepostRun()
to run after thenmain()
function returns and the programme exits, not when an async function called. Otherwise I don't know when my programme has exited to do my clean-up routines. Thanks.Amazing work with Emscripten + Asyncify 👍
The text was updated successfully, but these errors were encountered: