code: function getPendingRequest(file, offset, type) {
          var key = file + "@" + offset.line + "@" + offset.ch;
          if (_.has(pendingTernRequests, key)) {
              var requests = pendingTernRequests[key],
                  requestType = requests[type];
  
              delete pendingTernRequests[key][type];
  
              if (!Object.keys(requests).length) {
                  delete pendingTernRequests[key];
              }
  
              return requestType;
          }
      }
docs: Get any pending $.Deferred object waiting on the specified file and request type
  @param {string} file - the file
  @param {{line: number, ch: number}} offset - the offset into the file the request is for
  @param {string} type - the type of request
  @return {jQuery.Deferred} - the $.Deferred for the request