(items: T[], size: number)
| 188 | } |
| 189 | |
| 190 | protected chunks<T>(items: T[], size: number) { |
| 191 | const chunks = []; |
| 192 | for (let i = 0; i < items.length; i += size) { |
| 193 | chunks.push(items.slice(i, i + size)); |
| 194 | } |
| 195 | return chunks; |
| 196 | } |
| 197 | |
| 198 | /** |
| 199 | * Max number of ch.insert sub-chunks that a single flush may run in |
no test coverage detected