workerpool

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	TasksChan  chan *Task
	ErrorsChan chan error
	// contains filtered or unexported fields
}

func NewPool

func NewPool(concurrency uint) *Pool

func (*Pool) PrintStatus

func (p *Pool) PrintStatus(total int)

func (*Pool) Run

func (p *Pool) Run()

type Task

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

func NewTask

func NewTask(f func() error) *Task

Jump to

Keyboard shortcuts

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