interrupt

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(ctx context.Context) <-chan os.Signal

Notify returns a channel receives termination signals from the OS until the context is canceled.

func TerminationContext

func TerminationContext(ctx context.Context) (context.Context, context.CancelFunc)

TerminationContext returns a context that is canceled when a termination signal is received.

Types

This section is empty.

Jump to

Keyboard shortcuts

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