parallel

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertChannelsOfCompletedPartsToSlice

func ConvertChannelsOfCompletedPartsToSlice(channels []chan *s3.CompletedPart) []*s3.CompletedPart

func ConvertChannelsOfErrorToErrorSlice

func ConvertChannelsOfErrorToErrorSlice(errorChannels []chan error) []error

func InvokeErrorReturnFunction

func InvokeErrorReturnFunction(errorFunction func() error) chan error

Types

type Pool

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

func NewPool

func NewPool(poolSize int, taskQueueSize int) *Pool

taskQueueSize needs to be bigger than poolSize if you want to saturate the pool

func (*Pool) Release

func (pool *Pool) Release()

func (*Pool) Submit

func (pool *Pool) Submit(task func())

Jump to

Keyboard shortcuts

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