diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-03-24 20:08:06 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-03-24 20:08:06 -0700 |
commit | 54aa882d7defa633c341d67e5324cef5d416eac6 (patch) | |
tree | df08d586c970441fe6e41fe9af439fc16b079760 /README.md | |
parent | 0249f29c1bb8037b72f860b12295dcbfb15d6f28 (diff) | |
download | AndroidAsync-54aa882d7defa633c341d67e5324cef5d416eac6.tar.gz AndroidAsync-54aa882d7defa633c341d67e5324cef5d416eac6.tar.bz2 AndroidAsync-54aa882d7defa633c341d67e5324cef5d416eac6.zip |
add support for futures on AsyncHttpClient. TODO: Futures on sockets?
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,8 +11,8 @@ NIO is extremely efficient. // url is the URL to download. The callback will be invoked on the UI thread
// once the download is complete.
AsyncHttpClient.getDefaultInstance().get(url, new AsyncHttpClient.StringCallback() {
- @Override
// Callback is invoked with any exceptions/errors, and the result, if available.
+ @Override
public void onCompleted(Exception e, String result) {
if (e != null) {
e.printStackTrace();
|