mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: manage queue after space available
This commit is contained in:
1 parent
9b855fca47
commit
1f333f6b88
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ readdir('src/workers').then((workers) => {
|
|||||||
|
|
||||||
bundle: true,
|
bundle: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
minifyIdentifiers: false, // cause goofy errors
|
minifyIdentifiers: false, // causes goofy errors
|
||||||
minifySyntax: true,
|
minifySyntax: true,
|
||||||
minifyWhitespace: true,
|
minifyWhitespace: true,
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ async function manageQueue() {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
inProgress--;
|
inProgress--;
|
||||||
|
manageQueue();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
const { url, resolve } = queue.shift()!;
|
const { url, resolve } = queue.shift()!;
|
||||||
|
|||||||
Reference in new issue
Block a user