MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / loadSafely

Function loadSafely

src/Data/CoreCacheSync.js:56–62  ·  view source on GitHub ↗
(load)

Source from the content-addressed store, hash-verified

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

Callers 3

prefetchInBatchesFunction · 0.85
prefetchCoreCacheFunction · 0.85
prefetchProfilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected