Skip to main content
Module

x/netzo/deno.d.ts>Deno.removeSignalListener

SDK for Netzo, the open Web platform to unify IoT devices, applications and services.
Go to Latest
function Deno.removeSignalListener
import { Deno } from "https://deno.land/x/netzo@v0.1.10/deno.d.ts";
const { removeSignalListener } = Deno;

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
handler: () => void