We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Apologies for asking a question in issues, but there's no mini_racer tag on SO.
If I had an async function that I wanted to call from ruby, how would I do this?
Assuming my bundle correctly polyfills promises/async/await, and I have a function
async function asyncFunction() { await doSomething(); return "thing"; }
Is it possible to call this from ruby, and return "thing"?
The text was updated successfully, but these errors were encountered:
Yeah looks like we don't have promise resolution in our interop layer so the value is hidden.
What you would need to do here have a non async function resolve the promise somehow and invoke the non async thing.
I am not against building some specific async promise interop but we don't have anything now
Sorry, something went wrong.
Were able to do this, although we have to resolve the promise in Ruby. Our promises may be polyfilled by Babel but I'm not sure exactly.
Hi, is there some update on this?
No branches or pull requests
Apologies for asking a question in issues, but there's no mini_racer tag on SO.
If I had an async function that I wanted to call from ruby, how would I do this?
Assuming my bundle correctly polyfills promises/async/await, and I have a function
Is it possible to call this from ruby, and return "thing"?
The text was updated successfully, but these errors were encountered: