routinepool

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	EntryChannel chan *Task
	JobChannel   chan *Task
	// contains filtered or unexported fields
}

Pool defines the pool for goroutines

func NewPool

func NewPool(size int) *Pool

func (*Pool) Run

func (p *Pool) Run()

type Task

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

Task defines task

func NewTask

func NewTask(arg_f func() error) *Task

func (*Task) Execute

func (task *Task) Execute()

Jump to

Keyboard shortcuts

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