Whether this batch is worth fanning out.
(batchLength: number)
| 320 | |
| 321 | /** Whether this batch is worth fanning out. */ |
| 322 | static worthParallel(batchLength: number): boolean { |
| 323 | return batchLength >= MIN_PARALLEL_BATCH; |
| 324 | } |
| 325 | |
| 326 | async ready(): Promise<void> { |
| 327 | await Promise.all(this.workers.map((w) => w.ready)); |