Documentation ¶
Overview ¶
Package gpool Date: 2023/12/6 10:53 Author: Amu Description:
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
}
func NewGPool ¶
func NewGPool(workerSize, taskSize int) *GoroutinePool
func (*GoroutinePool) Start ¶
func (gp *GoroutinePool) Start() *GoroutinePool
func (*GoroutinePool) Stop ¶
func (gp *GoroutinePool) Stop()
func (*GoroutinePool) Submit ¶
func (gp *GoroutinePool) Submit(f TaskFunc, args ...interface{}) error
Click to show internal directories.
Click to hide internal directories.