Skip to content
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

EMTERPRETIFY_ASYNC: use async JS functions #6081

Closed
curiousdannii opened this issue Jan 15, 2018 · 1 comment
Closed

EMTERPRETIFY_ASYNC: use async JS functions #6081

curiousdannii opened this issue Jan 15, 2018 · 1 comment
Labels

Comments

@curiousdannii
Copy link
Contributor

Posting this so that I don't forget that I want it.

Once library files can use beyond ES5 (probably through Babel, #6000), it would be great if async functions could be actual async JS functions, as it's simpler and would greatly reduce the boilerplate code.

What I'm imagining is that instead of the Emterpreter FFI system pausing when EmterpreterAsync.handle is called, it would check if an FFI returns a promise, and if so pause and await it. Easy to describe in simplistic terms, I'm sure it will take a lot of work :P

@curiousdannii curiousdannii changed the title EMTERPRETER_ASYNC: use async JS functions EMTERPRETIFY_ASYNC: use async JS functions Jan 15, 2018
curiousdannii added a commit to curiousdannii/emscripten that referenced this issue Jan 18, 2018
@stale
Copy link

stale bot commented Sep 19, 2019

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 7 days. Feel free to re-open at any time if this issue is still relevant.

@stale stale bot added the wontfix label Sep 19, 2019
@stale stale bot closed this as completed Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant