MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / prefetchCoreCache

Function prefetchCoreCache

src/Data/CoreCacheSync.js:77–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77async function prefetchCoreCache() {
78 const [programs, applicants] = await Promise.all([
79 loadSafely(() => getPrograms(false, {}, "cs_rank", {priority: BACKGROUND_PRIORITY})),
80 loadSafely(() => getApplicants(false, {priority: BACKGROUND_PRIORITY})),
81 loadSafely(() => getRecords(false, {priority: BACKGROUND_PRIORITY})),
82 ]);
83 return {programs, applicants};
84}
85
86async function prefetchProfiles(applicants, syncEpoch) {
87 await waitForIdle(syncEpoch);

Callers 1

syncCoreCacheFunction · 0.85

Calls 4

getProgramsFunction · 0.90
getApplicantsFunction · 0.90
getRecordsFunction · 0.90
loadSafelyFunction · 0.85

Tested by

no test coverage detected