asynccallback, , GWT, witch, , , , o
:
class ServiceX {
void doFoo(x arg , y arg2 , callback arg3){
arg3.success("with return variables you need")
arg3.failed("with exception for example");
}
}
interface Callback {
void success(args...);
void failed(args ...);
}
in your view :
ServiceX bar =
bar.doFoo(a1,a2,new CallBack(){
void succes(args ...){
}
void failed(args ...){
}
});