tasklist

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusIgnored status = iota
	StatusPending
	StatusProcessing
	StatusErrored
	StatusFinished
)
View Source
const (
	ErrDone = errors.Error("all tasks done")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskList

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

func New

func New(ctx context.Context) *TaskList

func (*TaskList) Ignore

func (l *TaskList) Ignore(t interface{})

func (*TaskList) Pop

func (l *TaskList) Pop() (task interface{}, done func(error), err error)

func (*TaskList) Put

func (l *TaskList) Put(t interface{}) (status, error)

func (*TaskList) Wait

func (l *TaskList) Wait()

Jump to

Keyboard shortcuts

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