processor

package
v0.0.0-...-dc806d7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrAlreadyStarted         = "already started"
	ErrNotStarted             = "not started"
	ErrNumbersChannelIsClosed = "numbers channel is closed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

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

func New

func New(
	numbersChannel chan uint,
	printerSleepInterval time.Duration,
	smaWindowSize int,
	mustReadWholeQueue bool,
) (p *Processor, err error)

func (*Processor) Start

func (p *Processor) Start() (err error)

func (*Processor) Stop

func (p *Processor) Stop() (err error)

Jump to

Keyboard shortcuts

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