Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoroutinePool ¶
type GoroutinePool struct {
// contains filtered or unexported fields
}
GoroutinePool 协程池
func NewGoroutinePool ¶
func NewGoroutinePool(count int) *GoroutinePool
func (*GoroutinePool) Close ¶
func (c *GoroutinePool) Close(data interface{})
func (*GoroutinePool) Customer ¶
func (c *GoroutinePool) Customer(callback func(tIndex int, data interface{}))
func (*GoroutinePool) Producer ¶
func (c *GoroutinePool) Producer(data interface{})
func (*GoroutinePool) Wait ¶
func (c *GoroutinePool) Wait()
Click to show internal directories.
Click to hide internal directories.