internal

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Errorf = fmt.Errorf

Functions

func UseFmtErrorf

func UseFmtErrorf()

func UseXerrorsErrorf

func UseXerrorsErrorf()

Types

type Job

type Job interface {
	Run(ctx context.Context) error
}

func NewEmptyJob added in v0.0.2

func NewEmptyJob() Job

type Worker

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

func NewWorker

func NewWorker(id int, workerPool chan chan Job) Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context)

func (*Worker) Stop

func (w *Worker) Stop(ctx context.Context)

Jump to

Keyboard shortcuts

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