sign

package module
v0.0.0-...-00d3acf Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 6

README

sign-go

Simplest Go signals-per-callback handler.

License

This project is licensed under the terms of the MIT license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Notify

func Notify(handler Handler, signals ...os.Signal)

Notify calls handler when gets specified signals and pass given signal to handler. If handler returns false, notify stops waiting for signals.

Types

type Handler

type Handler func(os.Signal) bool

Jump to

Keyboard shortcuts

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