MCPcopy Create free account
hub / github.com/freecodexyz/free-code / resetShutdownState

Function resetShutdownState

src/utils/gracefulShutdown.ts:372–380  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370
371/** Reset shutdown state - only for use in tests */
372export function resetShutdownState(): void {
373 shutdownInProgress = false
374 resumeHintPrinted = false
375 if (failsafeTimer !== undefined) {
376 clearTimeout(failsafeTimer)
377 failsafeTimer = undefined
378 }
379 pendingShutdown = undefined
380}
381
382/**
383 * Returns the in-flight shutdown promise, if any. Only for use in tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected