MCPcopy
hub / github.com/webpack/webpack / getPromise

Method getPromise

lib/CacheFacade.js:64–76  ·  view source on GitHub ↗

* Returns promise with the data. * @template T * @returns {Promise<T>} promise with the data

()

Source from the content-addressed store, hash-verified

62 * @returns {Promise<T>} promise with the data
63 */
64 getPromise() {
65 /**
66 * Returns promise with the data.
67 * @param {number} i index
68 * @returns {Promise<T>} promise with the data
69 */
70 const next = (i) =>
71 this._items[i].getPromise().then((result) => {
72 if (result !== undefined) return result;
73 if (++i < this._items.length) return next(i);
74 });
75 return next(0);
76 }
77
78 /**
79 * Processes the provided data.

Callers

nothing calls this directly

Calls 1

nextFunction · 0.50

Tested by

no test coverage detected