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

Function done

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

Source from the content-addressed store, hash-verified

52): Promise<boolean> {
53 return new Promise<boolean>(resolve => {
54 const done = (timedOut: boolean) => {
55 clearTimeout(peek)
56 stream.off('end', onEnd)
57 stream.off('data', onFirstData)
58 void resolve(timedOut)
59 }
60 const onEnd = () => done(false)
61 const onFirstData = () => clearTimeout(peek)
62 // 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

resolveFunction · 0.70
offMethod · 0.65

Tested by

no test coverage detected