Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHandlerIsExist = errors.New("指定的键已存在") ErrWorkerChanClosed = errors.New("队列已关闭") )
Functions ¶
This section is empty.
Types ¶
type ChannelHandler ¶
type ChannelHandler func()
type ChannelPool ¶
type ChannelPool struct {
// contains filtered or unexported fields
}
func NewChannelPool ¶
func NewChannelPool(maxWorkerNum, maxPoolNum int) *ChannelPool
func (*ChannelPool) LoadOrStore ¶
func (pool *ChannelPool) LoadOrStore(key string, value ChannelHandler) error
func (*ChannelPool) Start ¶
func (pool *ChannelPool) Start()
func (*ChannelPool) Wait ¶
func (pool *ChannelPool) Wait()
Click to show internal directories.
Click to hide internal directories.