mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-31 05:24:13 +00:00 
			
		
		
		
	✨
This commit is contained in:
		
							parent
							
								
									6f535faa4d
								
							
						
					
					
						commit
						a4d7ba3172
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -167,7 +167,7 @@ async function init(): Promise<InitResult> { | |||
| 	return warn ? InitResult.Warn : InitResult.Success; | ||||
| } | ||||
| 
 | ||||
| function spawnWorkers(callback: any): void { | ||||
| function spawnWorkers(onComplete: any): void { | ||||
| 	// Count the machine's CPUs
 | ||||
| 	const cpuCount = os.cpus().length; | ||||
| 
 | ||||
|  | @ -185,7 +185,7 @@ function spawnWorkers(callback: any): void { | |||
| 
 | ||||
| 	// On all workers started
 | ||||
| 	progress.on('complete', () => { | ||||
| 		callback(); | ||||
| 		onComplete(); | ||||
| 	}); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue