Optionaloptions: { maxWorkers?: number; project?: Project; resourceManager?: ResourceManager }Execute analysis rules in parallel across files
Current implementation uses chunked batching with Promise.all for parallelism. This provides significant speedup while maintaining compatibility with ts-morph.
Files to analyze
Rules to execute
Optionaloptions: ParallelOptionsExecution options
Analysis results
Get worker pool statistics
Shutdown worker pool gracefully
Parallel executor implementation with dual execution modes:
Promise-based parallelism (default): File-level parallelism using Promise.race()
Worker thread parallelism: True multi-threaded execution
Deprecated
The WorkerPool analysis path is deprecated since 1.1 and will be removed in 2.0; the MCP scans run in a scan worker instead.