Deno.removeSignalListener

UNSTABLE: new API, yet to be vetted.

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: This functionality is not yet implemented on Windows.

function removeSignalListener(signal: Signal, handler: () => void): void;
§
removeSignalListener(signal: Signal, handler: () => void): void
[src]

§Parameters

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

§Return Type