MCPcopy Create free account
hub / github.com/dailydotdev/apps / bounded

Function bounded

packages/shared/src/components/shell/shellRefresh.ts:56–62  ·  view source on GitHub ↗
(work: Promise<unknown>)

Source from the content-addressed store, hash-verified

54};
55
56const bounded = (work: Promise<unknown>): Promise<unknown> =>
57 Promise.race([
58 work,
59 new Promise((resolve) => {
60 setTimeout(resolve, refreshBound);
61 }),
62 ]);
63
64export const refreshShell = async (
65 queryClient: QueryClient,

Callers 2

refreshShellFunction · 0.85
refreshPageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected