workers

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ExecFunc func()
	ID       int
}

func (*Task) Process

func (t *Task) Process()

type WorkerPool

type WorkerPool struct {
	Tasks []Task

	Concurrency int
	// contains filtered or unexported fields
}

func (*WorkerPool) Run

func (wp *WorkerPool) Run()

Jump to

Keyboard shortcuts

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