MCPcopy
hub / github.com/vercel/hyper / retry

Function retry

app/notifications.ts:10–15  ·  view source on GitHub ↗
(err?: Error)

Source from the content-addressed store, hash-verified

8export default function fetchNotifications(win: BrowserWindow) {
9 const {rpc} = win;
10 const retry = (err?: Error) => {
11 setTimeout(() => fetchNotifications(win), ms('30m'));
12 if (err) {
13 console.error('Notification messages fetch error', err.stack);
14 }
15 };
16 console.log('Checking for notification messages');
17 fetch(NEWS_URL, {
18 headers: {

Callers 2

fetchNotificationsFunction · 0.70

Calls 2

fetchNotificationsFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected