signals

package
v0.0.0-...-abf49f6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 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, sigs ...os.Signal) context.Context

WithSignals returns a context that is canceled with any signals in sigs.

func WithStandardSignals

func WithStandardSignals(ctx context.Context) context.Context

WithStandardSignals cancels the context on os.Interrupt, syscall.SIGTERM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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