Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
#823 - Adding JavaDoc for cancel()
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege committed Feb 25, 2015
1 parent 1d99422 commit 380fd1f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public void request(final String resourceUrl, final Callback callback) {
client.newCall(request).enqueue(callback);
}

/**
* Attempt to cancel HTTP Request made
* @param resourceUrl URL of request to cancel
*/
public void cancel(final String resourceUrl) {
client.cancel(resourceUrl.toLowerCase(MapboxConstants.MAPBOX_LOCALE));
}
Expand Down

0 comments on commit 380fd1f

Please sign in to comment.