MCPcopy Create free account
hub / github.com/Effect-TS/effect / handleEnd

Function handleEnd

packages/platform/node-shared/src/NodeTerminal.ts:142–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 const keepAlive = setInterval(() => {}, 2147483647)
141 // Without this, consumers (e.g. `Prompt.run`) hang forever on closed stdin.
142 const handleEnd = () => {
143 clearInterval(keepAlive)
144 Queue.endUnsafe(queue)
145 }
146 yield* Effect.addFinalizer(() =>
147 Effect.sync(() => {
148 clearInterval(keepAlive)

Callers 1

NodeTerminal.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected