MCPcopy Create free account
hub / github.com/Snapchat/Valdi / completeOnce

Function completeOnce

src/valdi_modules/src/valdi/valdi_http/web/WebHTTPClient.ts:9–13  ·  view source on GitHub ↗
(resp?: HTTPResponse, err?: unknown)

Source from the content-addressed store, hash-verified

7): () => void {
8 let done = false;
9 const completeOnce = (resp?: HTTPResponse, err?: unknown): void => {
10 if (done) return;
11 done = true;
12 try {
13 completion(resp, err);
14 } catch {
15 /* swallow in stub */
16 }

Callers 1

performRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected