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

Method retire

packages/platform/node-shared/src/internal/proxyProcess.ts:321–325  ·  view source on GitHub ↗

* Stops taking spawns, and disconnects once the running commands have * exited. A proxy process that is not ready yet has no commands and is * stopped.

()

Source from the content-addressed store, hash-verified

319 * stopped.
320 */
321 retire(): void {
322 this.retired = true
323 if (!this.ready) return this.stop(new Error("The proxy process was retired before it was ready"))
324 if (this.commands.size === 0) this.disconnect()
325 }
326
327 unref(): void {
328 this.refs--

Callers 1

getFunction · 0.80

Calls 2

stopMethod · 0.95
disconnectMethod · 0.95

Tested by

no test coverage detected