gopool

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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