constructor(idGenerator, upper, count) {
    this.idGenerator = idGenerator;
    this.upper = upper;
    this.count = count;
    this.segmentsList = [];
  }
@param {IdGenerator} idGenerator An identifier generator for segments.
@param {ForkContext|null} upper An upper fork context.
@param {number} count A number of parallel segments.