MCPcopy Index your code
hub / github.com/wei/pull / createTimeoutPromise

Function createTimeoutPromise

src/processor/index.ts:10–17  ·  view source on GitHub ↗
(log: Logger)

Source from the content-addressed store, hash-verified

8const TIMEOUT = 60 * 1000;
9
10function createTimeoutPromise(log: Logger) {
11 return new Promise((_, reject) => {
12 setTimeout(() => {
13 log.warn("⏰ Job timed out after 1 minute");
14 reject(new Error("Job timed out after 1 minute"));
15 }, TIMEOUT);
16 });
17}
18
19async function processRepo(
20 octokit: ProbotOctokit,

Callers 1

getRepoProcessorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected