Module

x/dax/src/command.ts>KillSignalController

Cross-platform shell tools for Deno and Node.js inspired by zx.
Extremely Popular
Latest
class KillSignalController
import { KillSignalController } from "https://dotland.deno.dev/x/dax@0.39.2/src/command.ts";

Similar to an AbortController, but for sending signals to commands.

Constructors

new
KillSignalController()

Properties

readonly
signal: KillSignal

Methods

kill(signal?: Deno.Signal)

Send a signal to the downstream child process. Note that SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause all the commands to be considered "aborted" and will return a 124 exit code, while other signals will just be forwarded to the commands.