workerpool

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start[T any](ctx context.Context, l *zap.Logger, ch chan *T, c work[T], opts ...Option)

Types

type Config

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

type Option

type Option func(*Config)

func WithRecoverDelay added in v0.0.4

func WithRecoverDelay(d time.Duration) Option

func WithWorker

func WithWorker(n int64) Option

Jump to

Keyboard shortcuts

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