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{}
Click to show internal directories.
Click to hide internal directories.