MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveWithRelease

Function resolveWithRelease

apps/sim/lib/execution/isolated-vm.ts:1382–1390  ·  view source on GitHub ↗
(result: IsolatedVMExecutionResult)

Source from the content-addressed store, hash-verified

1380 let abortListener: (() => void) | null = null
1381 let resolved = false
1382 const resolveWithRelease = (result: IsolatedVMExecutionResult) => {
1383 if (resolved) return
1384 resolved = true
1385 if (abortListener && signal) {
1386 signal.removeEventListener('abort', abortListener)
1387 }
1388 releaseLease()
1389 resolve(result)
1390 }
1391
1392 if (signal) {
1393 abortListener = () => {

Callers 1

executeInIsolatedVMFunction · 0.85

Calls 2

releaseLeaseFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected