MCPcopy Create free account
hub / github.com/anomalyco/opencode / deferred

Function deferred

packages/app/src/utils/worktree.ts:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25>()
26
27function deferred() {
28 const box = { resolve: (_: State) => {} }
29 const promise = new Promise<State>((resolve) => {
30 box.resolve = resolve
31 })
32 return { promise, resolve: box.resolve }
33}
34
35export const Worktree = {
36 get(scope: ServerScope, directory: string) {

Callers 1

waitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected