MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / settleFailure

Function settleFailure

desktop/runtime-host/client-bridge.ts:385–396  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

383
384 let settled = false
385 const settleFailure = (error: Error) => {
386 if (settled) {
387 return
388 }
389 settled = true
390 host.startPromise = null
391 host.process = null
392 if (host.role === 'thread') {
393 forgetHost(host)
394 }
395 reject(error)
396 }
397
398 child.once('spawn', () => {
399 if (runtimeHostsShuttingDown) {

Callers 1

ensureRuntimeHostFunction · 0.85

Calls 1

forgetHostFunction · 0.85

Tested by

no test coverage detected