MCPcopy
hub / github.com/webpack/webpack / range

Method range

lib/util/ParallelismFactorCalculator.js:27–32  ·  view source on GitHub ↗

* Processes the provided start. * @param {number} start range start * @param {number} end range end * @param {Callback} callback callback * @returns {void}

(start, end, callback)

Source from the content-addressed store, hash-verified

25 * @returns {void}
26 */
27 range(start, end, callback) {
28 if (start === end) return callback(1);
29 this._rangePoints.push(start);
30 this._rangePoints.push(end);
31 this._rangeCallbacks.push(callback);
32 }
33
34 calculate() {
35 const segments = [...new Set(this._rangePoints)].sort((a, b) =>

Callers 1

finishMethod · 0.95

Calls 2

callbackFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected