iworkable

package
v0.0.0-...-9bd2c4f Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dummy

func Dummy() *dummyWorkable

Types

type Workable

type Workable interface {
	Attach() uint
	BatchAttach(amount int) []uint
	Detach(w *worker.Worker)
	LaunchAll() error
	Launch(ID uint) error
	Enqueue(ts map[int]*task.Task) map[int]*task.TaskFuture
	Done(*task.Task) error
	DoneMulti(tsks map[int]*task.Task) error
	CountTasks() []int
	CountWorkers() int
	Close() bool
}

Jump to

Keyboard shortcuts

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