constructor(duration) {
    /**
     * @type {number} duration Timeout duration in milliseconds.
     * @public
     */
    this.duration = duration;
  }
@param {number} duration Timeout duration in milliseconds.