scheduler

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job func()

type Scheduler

type Scheduler interface {
	io.Closer
	Worker() Worker
}

func Elastic

func Elastic() Scheduler

func Immediate

func Immediate() Scheduler

func NewElastic added in v0.0.9

func NewElastic(size int) Scheduler

func NewParallel added in v0.0.11

func NewParallel(n int) Scheduler

func NewSingle added in v0.0.10

func NewSingle(cap int) Scheduler

func Parallel added in v0.0.11

func Parallel() Scheduler

func Single added in v0.0.10

func Single() Scheduler

type Worker

type Worker interface {
	Do(Job)
}

Jump to

Keyboard shortcuts

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