MCPcopy Create free account
hub / github.com/backnotprop/plannotator / deferred

Function deferred

packages/shared/worktree-pool.test.ts:166–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164// --- Seeded background warmup (non-blocking PR checkout) ---------------------
165
166function deferred<T>() {
167 let resolve!: (value: T) => void;
168 let reject!: (err: unknown) => void;
169 const promise = new Promise<T>((res, rej) => { resolve = res; reject = rej; });
170 return { promise, resolve, reject };
171}
172
173const PR3_URL = "https://github.com/acme/widgets/pull/3";
174

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected