(projectedMs: number, remainingRefs: number, barMs: number)
| 79 | |
| 80 | /** Whether the resolve loop should boot the pool mid-run (see ADAPTIVE_ENGAGE_MIN_REFS). */ |
| 81 | export function shouldEngageAdaptively(projectedMs: number, remainingRefs: number, barMs: number): boolean { |
| 82 | return remainingRefs >= ADAPTIVE_ENGAGE_MIN_REFS && projectedMs >= barMs; |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * The most workers a run takes, however large the project. The main thread saves |
no outgoing calls
no test coverage detected