Whether this batch is worth fanning out.
(batchLength: number)
| 357 | |
| 358 | /** Whether this batch is worth fanning out. */ |
| 359 | static worthParallel(batchLength: number): boolean { |
| 360 | return batchLength >= MIN_PARALLEL_BATCH; |
| 361 | } |
| 362 | |
| 363 | async ready(): Promise<void> { |
| 364 | await Promise.all(this.workers.map((w) => w.ready)); |