interrupt

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2020 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package interrupt allows to handle interrupts.

Index

Constants

This section is empty.

Variables

View Source
var ShutdownChannel = make(chan error)

ShutdownChannel is used to signal that shutdown is in progress.

Functions

func AddInterruptHandler

func AddInterruptHandler(handler func())

AddInterruptHandler adds a handler to call when a SIGINT (Ctrl+C) is received.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL