Skip to main content
Deno.removeSignalListener - Deno documentation
function Deno.removeSignalListener
removeSignalListener(
signal: Signal,
handler: () => void,
): void
Removes the given signal listener that has been registered with [`Deno.addSignalListener`](../././~/Deno.addSignalListener). ```ts 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
handler: () => void

Return Type

void