Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function Deno.removeSignalListener

Removes the given signal listener that has been registered with Deno.addSignalListener.

const listener = () => {
Deno.addSignalListener("SIGTERM", listener);
Deno.removeSignalListener("SIGTERM", listener);

Note: On Windows only "SIGINT" (CTRL+C) and "SIGBREAK" (CTRL+Break) are supported.


signal: Signal
handler: () => void