MCPcopy
hub / github.com/codeaashu/claude-code / done

Function done

src/utils/process.ts:55–60  ·  view source on GitHub ↗
(timedOut: boolean)

Source from the content-addressed store, hash-verified

53): Promise<boolean> {
54 return new Promise<boolean>(resolve => {
55 const done = (timedOut: boolean) => {
56 clearTimeout(peek)
57 stream.off('end', onEnd)
58 stream.off('data', onFirstData)
59 void resolve(timedOut)
60 }
61 const onEnd = () => done(false)
62 const onFirstData = () => clearTimeout(peek)
63 // eslint-disable-next-line no-restricted-syntax -- not a sleep: races timeout against stream end/data events

Callers 8

onEndFunction · 0.70
onSubmitFunction · 0.50

Calls 2

offMethod · 0.80
resolveFunction · 0.70

Tested by

no test coverage detected