(load)
| 54 | } |
| 55 | |
| 56 | async function loadSafely(load) { |
| 57 | try { |
| 58 | return await load(); |
| 59 | } catch { |
| 60 | return null; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | async function prefetchInBatches(items, batchSize, syncEpoch, loadBatch) { |
| 65 | for (let index = 0; index < items.length && shouldContinue(syncEpoch); index += batchSize) { |
no outgoing calls
no test coverage detected