workers

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotTerminatedOnCloseInput = errors.New("not terminate on closed input")

ErrNotTerminatedOnCloseInput worker.Process does not finish when input channel is closed

View Source
var ErrOutputNotClosed = errors.New("output channel is not closed")

ErrOutputNotClosed worker.Process does not close output channel

View Source
var ErrProcessIgnoreCtx = errors.New("ignored context.Done")

ErrProcessIgnoreCtx worker.Process does not terminate when context is canceled

Functions

func ATProcessCancel

func ATProcessCancel(w selina.Worker) error

ATProcessCancel a worker must terminate and return context.Canceled when context is canceled

func ATProcessCloseInput

func ATProcessCloseInput(w selina.Worker) error

ATProcessCloseInput a worker must finish its job and return nil when input chanel (<-chan []byte )is closed

func ATProcessCloseOutput

func ATProcessCloseOutput(w selina.Worker) error

ATProcessCloseOutput a worker must close its output channel on exit

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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