(maxConcurrentLoads: number, multiplier = 4)
| 20 | } |
| 21 | |
| 22 | export function getPrefetchChunkSize(maxConcurrentLoads: number, multiplier = 4): number { |
| 23 | return Math.max(1, Math.floor(maxConcurrentLoads) * multiplier); |
| 24 | } |
| 25 | |
| 26 | export function getPrefetchProgress(completed: number, total: number): number { |
| 27 | if (total <= 0) { |
no outgoing calls
no test coverage detected