public interface AsyncProvider<T>
AsyncCallback
. The instance is created within a
GWT.runAsync block using the following template:
public void get(final AsyncCallbackcallback) { GWT.runAsync(new RunAsyncCallback() { public void onSuccess() { callback.onSuccess(Provider .get()); } public void onFailure(Throwable ex) { callback.onFailure(ex); } } }
Modifier and Type | Method and Description |
---|---|
void |
get(AsyncCallback<? super T> callback) |
void get(AsyncCallback<? super T> callback)
callback
- Callback used to pass the instance of T or an exception
if there is an issue creating that instance.Copyright © 2008–2018. All rights reserved.