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

Strategy for creating async extensions #53

Closed
libitx opened this issue Feb 24, 2020 · 1 comment
Closed

Strategy for creating async extensions #53

libitx opened this issue Feb 24, 2020 · 1 comment

Comments

@libitx
Copy link

libitx commented Feb 24, 2020

Hi. I'm trying to create some extensions that call javascript code that needs to run asynchronously. In effect this returns a Promise to Lua, instead of the resolved value.

I see an open (#2) issue from 2017 that seems related but hasn't been resolved. This problem is proving a bit of a blocker to my project at the moment, so I'd be happy to contribute a PR to move this forward, but I'm not sure exactly what the strategy should be. Did you have any ideas how to resolve #2?

Or is current best strategy just to avoid async code in extensions?

@daurnimator
Copy link
Member

Please keep discussion in #2 rather than opening a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants