MCPcopy Index your code
hub / github.com/fontsource/fontsource / keepAwake

Function keepAwake

api/download/src/sleep.ts:6–12  ·  view source on GitHub ↗
(minutes: number)

Source from the content-addressed store, hash-verified

4let sleepTimeout: NodeJS.Timeout;
5
6export const keepAwake = (minutes: number) => {
7 if (sleepTimeout) {
8 clearTimeout(sleepTimeout);
9 }
10
11 sleepTimeout = setTimeout(() => process.exit(0), 1000 * 60 * minutes);
12};

Callers 6

generateZipFunction · 0.90
listBucketFunction · 0.90
uploadPartFunction · 0.90
putBucketFunction · 0.90
getBucketFunction · 0.90
server.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected