rohitagarwal3011 / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Add way to query the number of pending ajax tasks #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Peter,

I added the following 2 items in BitmapAjaxCallback as a small workaround for 
now.

public static boolean isTasksQueueEmpty() {

    return queueMap.isEmpty();

}

public static int getTasksQueueLength() {

    return queueMap.size();

}

It would be really useful to be able to see if any requests are still pending 
in both the image handling and the ajax side. That way if I issue 10 async 
requests I can wait until I have all responses back before carrying on.

Not sure if this is the best solution to the problem.

Matt

Original issue reported on code.google.com by tinyeeliu@gmail.com on 18 Aug 2012 at 6:28

GoogleCodeExporter commented 8 years ago
Added AjaxCallback.getActiveCount() to dev.

Will be available next release.

Original comment by tinyeeliu@gmail.com on 17 Dec 2012 at 10:55