Wednesday, August 31, 2016

synchronously waiting for a Promise

Hi guys,

I'm trying to wrap a JS function which returns a Promise with a synchronous function in Java. Something like CompletableFuture.get(). I understand that CompletableFuture isn't emulated yet. 

Is there any other way to achieve this? The alternative of propagating callbacks/promises all the way up my Java stack is not really an option. 

Many thanks for any suggestions,
Ian

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