contexts

package
v4.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSignals

func WithSignals(ctx context.Context, signals ...os.Signal) (context.Context, context.CancelFunc)

WithSignals returns a context that is canceled when the process receives one of the given signals. When ctx is nil, a default Background context is used. When signals is empty, the context will be canceled by the default os.Interrupt signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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