Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dax/src/command.ts>KillSignalController

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
class KillSignalController
import { KillSignalController } from "https://deno.land/x/dax@0.35.0/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.