MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / finish

Function finish

src/core/hooks.ts:425–432  ·  view source on GitHub ↗
(code: number)

Source from the content-addressed store, hash-verified

423 timer.unref?.()
424
425 const finish = (code: number) => {
426 if (settled) return
427 settled = true
428 clearTimeout(timer)
429 if (killTimer) clearTimeout(killTimer)
430 signal?.removeEventListener("abort", onAbort)
431 resolve({ stdout, stderr, code, timedOut })
432 }
433
434 child.stdout.setEncoding("utf8")
435 child.stderr.setEncoding("utf8")

Callers 1

execHookCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected