sig

package
v0.0.0-...-1327151 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package sig provides signal helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithSignal

func ContextWithSignal(parent context.Context, pre func(os.Signal), sigs ...os.Signal) context.Context

ContextWithSignal returns a context that will be cancelled on any of the provided signals. Calls pre function before cancellation, if non-nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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