parallel

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 4

README

go-parallel

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobPool

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

func CustomJobPool

func CustomJobPool(config JobPoolConfig) *JobPool

func LargeJobPool

func LargeJobPool() *JobPool

func MediumJobPool

func MediumJobPool() *JobPool

func SmallJobPool

func SmallJobPool() *JobPool

func (*JobPool) AddJob

func (jp *JobPool) AddJob(job func()) error

func (*JobPool) Close

func (jp *JobPool) Close()

func (*JobPool) Wait

func (jp *JobPool) Wait() error

func (*JobPool) WaitContext

func (jp *JobPool) WaitContext(ctx context.Context) error

type JobPoolConfig

type JobPoolConfig struct {
	WorkerCount  int
	JobQueueSize int
}

Jump to

Keyboard shortcuts

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