MCPcopy Create free account
hub / github.com/freecodexyz/free-code / onFirstData

Function onFirstData

src/utils/process.ts:62–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
64 const peek = setTimeout(done, ms, true)
65 stream.once('end', onEnd)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected