MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / send

Method send

src/extraction/store-writer.ts:149–154  ·  view source on GitHub ↗

Post one file's bundle. Throws immediately if the writer already failed.

(bundle: StoreBundle | KernelStoreBundle)

Source from the content-addressed store, hash-verified

147
148 /** Post one file's bundle. Throws immediately if the writer already failed. */
149 send(bundle: StoreBundle | KernelStoreBundle): void {
150 if (this.firstError) throw this.firstError;
151 if (this.exited) throw new Error('store worker already exited');
152 this.outstanding++;
153 this.worker.postMessage({ type: 'bundle', bundle });
154 }
155
156 /** Backpressure: resolves once fewer than `limit` bundles are un-acked. */
157 waitBelow(limit: number): Promise<void> {

Callers

nothing calls this directly

Calls 1

postMessageMethod · 0.65

Tested by

no test coverage detected