GWT won't generate async functions, so there's no way to async/await in GWT with JsInterop (currently, might come in the future… possibly only in J2Cl:GWT3 though…)
-- You'll have to use promises (I'd suggest elemental2.promise.Promise, with Java 8 lambdas for readability)
On Friday, August 31, 2018 at 8:33:46 AM UTC+2, Anders Forsell wrote:
On Friday, August 31, 2018 at 8:33:46 AM UTC+2, Anders Forsell wrote:
Hello,Can I call an async JS method from GWT using J2CL?The JS code is nicer to write using async/await than with callbacks, but not sure how to handle that from GWT side...Thanks,
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment