workerpool

package
v0.0.0-...-6d99c5e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerPool

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

func New

func New(workerCount uint64) *WorkerPool

New создает и запускает новый воркер пул

func (*WorkerPool) StopWait

func (p *WorkerPool) StopWait()

StopWait останавливает пул и ждет, пока все задачи будут выполнены

func (*WorkerPool) Submit

func (p *WorkerPool) Submit(task func())

Submit добавляет задачу в пул

Jump to

Keyboard shortcuts

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