channel

package
v1.26.0-120.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 1 Imported by: 0

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()

Jump to

Keyboard shortcuts

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