add(...args) {
    this.queue.push(args);

    if (this.queue.length >= this.threshold) {
      this.flush();
    }
  }
/** Add a call to the batcher */
Add a call to the batcher
Add a call to the batcher
add(...args) {
    this.queue.push(args);
    if (this.queue.length >= this.threshold) {
      this.flush();
    }
  }
add ( ... args ) { this . queue . push ( args ) ; if ( this . queue . length >= this . threshold ) { this . flush ( ) ; } }
Add a call to the batcher
Add a call to the batcher