signals

package
Version: v1.7.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context

func Context() context.Context

Context returns a context which will be canceled when either the SIGINT or SIGTERM signal is caught. It also returns a function that can be used to programmatically cancel the same context at any time. If either signal is caught a second time, the program is terminated immediately with exit code 1.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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