signal

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package signal handles terminating applications on Ctrl+Break.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (waitForFunc func(), terminateFunc func())

New waits for a manual termination or a user initiated termination IE: Ctrl+Break. waitForFunc() will wait indefinitely for a signal. terminateFunc() will trigger waitForFunc() to complete immediately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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