MCPcopy Create free account
hub / github.com/Noumena-Network/code / resolveOnce

Function resolveOnce

src/session/replSandboxAskDispatch.ts:96–100  ·  view source on GitHub ↗
(allow: boolean)

Source from the content-addressed store, hash-verified

94 return new Promise(resolveShouldAllowHost => {
95 let resolved = false
96 function resolveOnce(allow: boolean): void {
97 if (resolved) return
98 resolved = true
99 resolveShouldAllowHost(allow)
100 }
101
102 deps.setSandboxPermissionRequestQueue(prev => [
103 ...prev,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected