T - the type of the provided valueF - the type returned on failurepublic interface AsyncProvider<T,F>
Callback. For example, the instance might be
created within a GWT.runAsync block using the following template:
public void get(final Callback callback) {
GWT.runAsync(new RunAsyncCallback() {
public void onSuccess() {
callback.onSuccess(javax.inject.Provider.get());
}
public void onFailure(Throwable ex) {
callback.onFailure(ex);
}
}
}
| Modifier and Type | Method and Description |
|---|---|
void |
get(Callback<? super T,? super F> callback) |