()
| 75 | } |
| 76 | |
| 77 | async 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 | |
| 86 | async function prefetchProfiles(applicants, syncEpoch) { |
| 87 | await waitForIdle(syncEpoch); |
no test coverage detected