remove(time, key) {
    checkIfInstanceIsDisposed(this.disposed);

    const queue = this.queue[time];

    if (queue) {
      // Filter out keys in queue[time] which are matching current remove key
      const filteredQueue = queue.filter(({ key: k }) => k !== key);
      if (!filteredQueue.length) {
        delete this.queue[time];
      } else {
        this.queue[time] = filteredQueue;
      }

      return true;
    }

    return false;
  }
/**
   * Remove specific key from expiry queue
   *
   * @param {Number} time  Expiry time
   * @param {String} key key to remove from the expiry queue
   * */
Remove specific key from expiry queue
@param {Number} time  Expiry time
@param {String} key key to remove from the expiry queue
Remove specific key from expiry queue @param { Number } time Expiry time @param { String } key key to remove from the expiry queue
remove(time, key) {
    checkIfInstanceIsDisposed(this.disposed);
    const queue = this.queue[time];
    if (queue) {
      const filteredQueue = queue.filter(({ key: k }) => k !== key);
      if (!filteredQueue.length) {
        delete this.queue[time];
      } else {
        this.queue[time] = filteredQueue;
      }
      return true;
    }
    return false;
  }
remove ( time , key ) { checkIfInstanceIsDisposed ( this . disposed ) ; const queue = this . queue [ time ] ; if ( queue ) { const filteredQueue = queue . filter ( ( { key : k } ) => k !== key ) ; if ( ! filteredQueue . length ) { delete this . queue [ time ] ; } else { this . queue [ time ] = filteredQueue ; } return true ; } return false ; }
Remove specific key from expiry queue
 @param {Number} time  Expiry time
 @param {String} key key to remove from the expiry queue
Remove specific key from expiry queue @param { Number } time Expiry time @param { String } key key to remove from the expiry queue
// Filter out keys in queue[time] which are matching current remove key