Skip to main content
Module

x/dax/mod.ts>KillSignal

Cross platform shell tools for Deno inspired by zx.
Extremely Popular
Go to Latest
class KillSignal
import { KillSignal } from "https://deno.land/x/dax@0.37.1/mod.ts";

Similar to AbortSignal, but for Deno.Signal.

A KillSignal is considered aborted if its controller receives SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP.

These can be created via a KillSignalController.

Constructors

new
KillSignal(symbol: Symbol, state: KillSignalState)

Properties

readonly
aborted: boolean

Returns if the command signal has ever received a SIGTERM, SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP

Methods

addListener(listener: (signal: Deno.Signal) => void)
linkChild(killSignal: KillSignal): { unsubscribe(): void; }

Causes the provided kill signal to be triggered when this signal receives a signal.

removeListener(listener: (signal: Deno.Signal) => void)