function Deno.removeSignalListener
removeSignalListener(signal: Signal,handler: () => void,): void
Removes the given signal listener that has been registered with
Deno.addSignalListener
.
const listener = () => {
console.log("SIGTERM!")
};
Deno.addSignalListener("SIGTERM", listener);
Deno.removeSignalListener("SIGTERM", listener);
Note: On Windows only "SIGINT"
(CTRL+C) and "SIGBREAK"
(CTRL+Break)
are supported.
signal: Signal
void