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

Function killProcess

packages/platform/deno/src/DenoChildProcessSpawner.ts:190–198  ·  view source on GitHub ↗
(
    command: ChildProcess.StandardCommand,
    childProcess: Deno.ChildProcess,
    signal: ChildProcess.Signal
  )

Source from the content-addressed store, hash-verified

188 })
189
190 const killProcess = (
191 command: ChildProcess.StandardCommand,
192 childProcess: Deno.ChildProcess,
193 signal: ChildProcess.Signal
194 ) =>
195 Effect.try({
196 try: () => childProcess.kill(signal as Deno.Signal),
197 catch: (cause) => toPlatformError("kill", cause, command)
198 })
199
200 const withTimeout = (
201 childProcess: Deno.ChildProcess,

Callers 2

killFunction · 0.70

Calls 1

toPlatformErrorFunction · 0.70

Tested by

no test coverage detected