signal

package
v0.0.0-...-d07672d Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ConstInfinityTerminateTimeout = time.Duration(-1)

Variables

This section is empty.

Functions

func WaitTermSignalForGracefulShutdown

func WaitTermSignalForGracefulShutdown(sigs ...*TerminateSignal)

Types

type TerminateSignal

type TerminateSignal struct {
	// contains filtered or unexported fields
}

func NewDefaultTerminateSignal

func NewDefaultTerminateSignal() *TerminateSignal

func NewTerminateSignal

func NewTerminateSignal(timeout time.Duration) *TerminateSignal

func NewTerminateSignalWithContext

func NewTerminateSignalWithContext(ctx context.Context, timeout time.Duration) *TerminateSignal

func (*TerminateSignal) CancelCallbacksRegistry

func (s *TerminateSignal) CancelCallbacksRegistry(callbacks ...func())

func (*TerminateSignal) Close

func (s *TerminateSignal) Close(outsideWg *sync.WaitGroup)

func (*TerminateSignal) GetStopChan

func (s *TerminateSignal) GetStopChan() <-chan struct{}

Jump to

Keyboard shortcuts

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