import { KillSignal } from "https://dotland.deno.dev/x/dax@0.39.2/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: KillSignalListener)
linkChild(killSignal: KillSignal): { unsubscribe(): void; }
Causes the provided kill signal to be triggered when this signal receives a signal.
removeListener(listener: KillSignalListener)