Open joshleblanc opened 5 years ago
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
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?
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"?