worker

package
v0.0.0-...-08d8efc Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskWorker

type TaskWorker interface {
	WorkerCount() int

	SetCallback(func(int, interface{})) error
	SetSource(*queue.RingBuffer) error
	Invoke(interface{}) error

	Start()
	Close()
}

TaskWorker defined common behaviour for different worker

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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