parallel

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkQueue

type WorkQueue struct {
	workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

WorkQueue is a thread safe task runner

func NewWorkQueue

func NewWorkQueue(qps int, burst int) *WorkQueue

NewWorkQueue instantiates a new WorkQueue

func (*WorkQueue) Add

func (c *WorkQueue) Add(do func() error) <-chan error

Add work to the queue, returns a channel that signals when the work is done.

Jump to

Keyboard shortcuts

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