Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShutdownGuard ¶
ShutdownGuard facilitates coordinating the shutdown of multiple components.
func NewShutdownGuard ¶
func NewShutdownGuard() *ShutdownGuard
NewShutdownGuard creates a new ShutdownGuard.
func (*ShutdownGuard) InitiateShutdown ¶
func (s *ShutdownGuard) InitiateShutdown()
InitiateShutdown signals to all components that they should begin shutting down.
func (*ShutdownGuard) ShutdownAndDone ¶
func (s *ShutdownGuard) ShutdownAndDone()
ShutdownAndDone initiates a shutdown and signals completion.
func (*ShutdownGuard) ShutdownAndWait ¶
func (s *ShutdownGuard) ShutdownAndWait()
ShutdownAndWait initiates a shutdown, and waits for all components to finish.
Click to show internal directories.
Click to hide internal directories.