Whether this batch is worth fanning out.
(batchLength: number)
| 224 | |
| 225 | /** Whether this batch is worth fanning out. */ |
| 226 | static worthParallel(batchLength: number): boolean { |
| 227 | return batchLength >= MIN_PARALLEL_BATCH; |
| 228 | } |
| 229 | |
| 230 | async ready(): Promise<void> { |
| 231 | await Promise.all(this.workers.map((w) => w.ready)); |