abortPending method

void abortPending()

aborts the jsonRequest calls still in flight that set a timeout or disable redirects. The client stays open: the app may share it through http.runWithClient

Implementation

void abortPending() {
  for (final abort in _pendingAborts) {
    abort();
  }
}