sigx

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(fn func(os.Signal))

Listen starts a goroutine to listen for OS signals such as os.Interrupt, syscall.SIGTERM, syscall.SIGHUP, and syscall.SIGQUIT. When any of these signals is received, it invokes the provided function fn with the received signal as an argument. If fn is nil, no action is taken when a 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