removeInFlightRequestById method

void removeInFlightRequestById(
  1. String id
)

Implementation

void removeInFlightRequestById(String id) {
  RequestState? state = globalState.inFlightRequests[id];
  if (state != null) {
    try {
      state.networkController.close();
    } catch (e) {
      Logger.log.e(e);
    }
    globalState.inFlightRequests.remove(id);
  }
}