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

Function onStdinEnd

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

Source from the content-addressed store, hash-verified

42 let inputEnded = false
43 let readlineActive = false
44 const onStdinEnd = () => {
45 inputEnded = true
46 if (!readlineActive) {
47 Queue.endUnsafe(lines)
48 }
49 }
50 // Node's stdio getters can set O_NONBLOCK on inherited pipes, so only
51 // access a stream from an operation that uses it.
52 let stdin: typeof process.stdin | undefined

Callers 1

getStdinFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected