✨
This commit is contained in:
@@ -167,7 +167,7 @@ async function init(): Promise<InitResult> {
|
|||||||
return warn ? InitResult.Warn : InitResult.Success;
|
return warn ? InitResult.Warn : InitResult.Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
function spawnWorkers(callback: any): void {
|
function spawnWorkers(onComplete: any): void {
|
||||||
// Count the machine's CPUs
|
// Count the machine's CPUs
|
||||||
const cpuCount = os.cpus().length;
|
const cpuCount = os.cpus().length;
|
||||||
|
|
||||||
@@ -185,7 +185,7 @@ function spawnWorkers(callback: any): void {
|
|||||||
|
|
||||||
// On all workers started
|
// On all workers started
|
||||||
progress.on('complete', () => {
|
progress.on('complete', () => {
|
||||||
callback();
|
onComplete();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user