opio

package
v0.0.0-...-c766eab Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultInterruptSignals = []os.Signal{
	os.Interrupt,
	os.Kill,
	syscall.SIGTERM,
	syscall.SIGQUIT,
}

DefaultInterruptSignals is a set of default interrupt signals.

Functions

func BlockOnInterrupts

func BlockOnInterrupts(signals ...os.Signal)

BlockOnInterrupts blocks until a SIGTERM is received. Passing in signals will override the default signals.

Types

This section is empty.

Jump to

Keyboard shortcuts

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