Thursday, October 1, 2020

Re: consuming a non standard promise in java

There are performance implications (AFAICT) but you should be able to access all arguments through Js.arguments().

…or you could use your own Promise interface mapping to their specific API.

On Thursday, October 1, 2020 at 11:58:56 AM UTC+2, Elhanan wrote:
hi...i'm  consuming cockpit api promises, but it would seem they are using a non standard form which i cannot use with elemental2 

their fail method returns multiple paramters, which elemental2 doesn't have. 
so they recommended using done method (which elemental2 also doesn't have) 

cockpit.spawn(["/opt/aeroscout/engine/run/aeroscout-engine-wd","status"]) .done(data=>console.log("data " + data)) .fail((ex,data) => { console.log(ex); })  

are there any other java gwt Promise libraries i can use?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/c6939c31-6bbb-48a8-a3f9-d71a6aa2cb4do%40googlegroups.com.

No comments:

Post a Comment