goroutinePool

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

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