Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShutdownOnce ¶
type ShutdownOnce interface {
// Shutdown broadcast shutdown signal
Shutdown()
// IsShutdown return true if already shutdown
IsShutdown() bool
// Channel for shutdown notification
Channel() <-chan struct{}
}
type ShutdownOnceImpl ¶
type ShutdownOnceImpl struct {
// contains filtered or unexported fields
}
func NewShutdownOnce ¶
func NewShutdownOnce() *ShutdownOnceImpl
func (*ShutdownOnceImpl) Channel ¶
func (c *ShutdownOnceImpl) Channel() <-chan struct{}
func (*ShutdownOnceImpl) IsShutdown ¶
func (c *ShutdownOnceImpl) IsShutdown() bool
func (*ShutdownOnceImpl) Shutdown ¶
func (c *ShutdownOnceImpl) Shutdown()
Click to show internal directories.
Click to hide internal directories.