MCPcopy Create free account
hub / github.com/webpack/webpack / unblock

Function unblock

lib/hmr/HotModuleReplacement.runtime.js:326–338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324 }
325
326 function unblock() {
327 if (--blockingPromises === 0) {
328 setStatus("ready").then(function () {
329 if (blockingPromises === 0) {
330 var list = blockingPromisesWaiting;
331 blockingPromisesWaiting = [];
332 for (var i = 0; i < list.length; i++) {
333 list[i]();
334 }
335 }
336 });
337 }
338 }
339
340 /**
341 * @param {Promise<unknown>} promise blocking promise

Callers

nothing calls this directly

Calls 1

setStatusFunction · 0.85

Tested by

no test coverage detected