taskpool

package
v0.0.0-...-4158b14 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IOTaskPool

type IOTaskPool struct {
	// contains filtered or unexported fields
}

IOTaskPool .

func NewIO

func NewIO(concurrent, queueSize, bufSize int, v ...interface{}) *IOTaskPool

NewIO creates and returns a IOTaskPool.

func (*IOTaskPool) Call

func (tp *IOTaskPool) Call(f func(*[]byte))

Call .

func (*IOTaskPool) Go

func (tp *IOTaskPool) Go(f func(*[]byte))

Go .

func (*IOTaskPool) Stop

func (tp *IOTaskPool) Stop()

Stop .

type TaskPool

type TaskPool struct {
	// contains filtered or unexported fields
}

TaskPool .

func New

func New(maxConcurrent int, chQqueueSize int, v ...interface{}) *TaskPool

New creates and returns a TaskPool.

func (*TaskPool) Call

func (tp *TaskPool) Call(f func())

Call .

func (*TaskPool) Go

func (tp *TaskPool) Go(f func())

Go .

func (*TaskPool) Stop

func (tp *TaskPool) Stop()

Stop .

Jump to

Keyboard shortcuts

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