MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / done

Function done

packages/cli/src/cloud/download.ts:144–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 // flush) doesn't leak an unhandled 'error' onto the stream, and
143 // resolve either way so the finally block proceeds to unlinkSync.
144 const done = (): void => {
145 file.off("error", done);
146 resolve();
147 };
148 file.once("error", done);
149 file.end(() => done());
150 });

Callers 2

closeFileFunction · 0.85
isPortAvailableOnHostFunction · 0.85

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected