property BunHost.onSignal

Registers a process-termination signal listener.

Sourced from node:process, not the Bun global — see this module's own header for why the global cannot be trusted to carry these members.

Type

(
signal: RuntimeSignal,
handler: () => void
) => void

Usage

import { type BunHost } from "runtime/src/index.ts";