function Deno.removeSignalListener

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.

Parameters

signal: Signal[src]
handler: () => void[src]