signal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal struct {
	ShutdownRequestedChan chan struct{}
	// contains filtered or unexported fields
}

func NewSignal

func NewSignal() *Signal

func (*Signal) BlockShutdown

func (s *Signal) BlockShutdown() func()

func (*Signal) NumBlocking

func (s *Signal) NumBlocking() int32

func (*Signal) RequestShutdown

func (s *Signal) RequestShutdown()

RequestShutdown initiates a graceful shutdown from the application.

func (*Signal) ShutdownChannel

func (s *Signal) ShutdownChannel() <-chan struct{}

ShutdownChannel returns the channel that will be closed once the main interrupt handler has exited.

func (*Signal) ShutdownRequested

func (s *Signal) ShutdownRequested() bool

Jump to

Keyboard shortcuts

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