Thursday, October 1, 2020

consuming a non standard promise in java

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/4c15d553-a8db-4dc8-9cf6-ca589268adf8n%40googlegroups.com.

No comments:

Post a Comment