T- the type of the result object.
public interface PendingResult<T>
|Modifier and Type||Interface and Description|
The callback interface the API client code needs to implement to handle API results.
|Modifier and Type||Method and Description|
Performs the request synchronously.
Performs the request synchronously, ignoring exceptions while performing the request and errors returned by the server.
Attempt to cancel the request.
Performs the request asynchronously, calling onResult or onFailure after the request has been completed.
void setCallback(PendingResult.Callback<T> callback)
T await() throws java.lang.Exception