
com.asayama.gwt.angular.client.q.Promise Maven / Gradle / Ivy
package com.asayama.gwt.angular.client.q;
import com.asayama.gwt.jsni.client.Function;
import com.asayama.gwt.jsni.client.JSFunction;
import com.asayama.gwt.jsni.client.JSObject;
import com.google.gwt.core.shared.GWT;
public class Promise extends JSObject {
protected Promise() {
}
public static interface Done {
void call(V value);
}
public static interface Continue {
X call(V value);
}
public static interface Fail {
void call(Throwable cause);
}
public static interface Notify {
void call(Progress progress);
}
public final Promise then(Continue success) {
return then(success, null, null);
}
public final Promise then(Fail fail) {
return then(null, fail, null);
}
public final Promise then(Notify notify) {
return then(null, null, notify);
}
public final Promise then(final Done success) {
then(new Continue
© 2015 - 2025 Weber Informatics LLC | Privacy Policy