Example #1
0
  /** Cancel all pending requests */
  public void cancelAll() {
    ArrayList<Object> groups;

    synchronized (this) {
      groups = new ArrayList<Object>(inFlight.keySet());
    }

    for (Object group : groups) cancelAll(group);
  }
Example #2
0
 /**
  * Cancel all pending requests associated with the given context
  *
  * @param context
  */
 public void cancelAll(Context context) {
   cancelAll((Object) context);
 }