Friday, August 31, 2018

Re: Call async js method from GWT via j2cl?

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:

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...


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
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment