MCPcopy Index your code
hub / github.com/CapSoftware/Cap / resolvePromise

Function resolvePromise

apps/desktop/src/utils/auth.ts:141–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 let settled = false;
140 let stopListening: (() => void) | undefined;
141 let resolvePromise: (data: AuthParams | null) => void = () => {};
142
143 const complete = new Promise<AuthParams | null>((resolve) => {
144 resolvePromise = resolve;

Callers 1

settleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected