Package com.google.gwt.core.client
Interface AsyncProvider<T,F>
-
- Type Parameters:
T
- the type of the provided valueF
- the type returned on failure
public interface AsyncProvider<T,F>
An object capable of providing an instance of type T asynchronously viaCallback
. 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); } } }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
get(Callback<? super T,? super F> callback)
-