import { KillSignal } from "https://deno.land/x/dax@0.36.0/src/command.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
.
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)