MCPcopy Create free account
hub / github.com/anus-dev/ANUS / onClose

Method onClose

packages/core/src/tools/tool-registry.ts:70–78  ·  view source on GitHub ↗
(
        _code: number | null,
        _signal: NodeJS.Signals | null,
      )

Source from the content-addressed store, hash-verified

68 };
69
70 const onClose = (
71 _code: number | null,
72 _signal: NodeJS.Signals | null,
73 ) => {
74 code = _code;
75 signal = _signal;
76 cleanup();
77 resolve();
78 };
79
80 const cleanup = () => {
81 child.stdout.removeListener('data', onStdout);

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.50

Tested by

no test coverage detected