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

Function handleEnd

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

Source from the content-addressed store, hash-verified

107 const keepAlive = setInterval(() => {}, 2147483647)
108 // Without this, consumers (e.g. `Prompt.run`) hang forever on closed stdin.
109 const handleEnd = () => {
110 clearInterval(keepAlive)
111 Queue.endUnsafe(queue)
112 }
113 yield* Effect.addFinalizer(() =>
114 Effect.sync(() => {
115 clearInterval(keepAlive)

Callers 1

NodeTerminal.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected