code: function(expected, timeout) {
    this.expected = expected;
    this.timeout = timeout;
    this.count = 0;
    this.data = {};
    this.errs = [];
    this.events = {
      error: null,
      timeout: null,
      done: null,
    };
    if (this.timeout) {
      this.timer = setTimeout(() => {
        const err = new Error(COLLECT_TIMEOUT);
        this.emit('timeout', err, this.data);
      }, timeout);
    }
  }
docs: Create new DataCollector expected - <number>, count of `collect()` calls expected timeout - <number>, collect timeout, optional  Returns: <DataCollector>