batch

package
v0.0.0-...-eef6c14 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

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

Batch - jobs executed in parralel

func NewBatch

func NewBatch(j []job.Request, bc *core.BlockChain, pq *queue.JobPriorityQueue, jc *cache.JobCache) (*Batch, error)

NewBatch returns batch

func (*Batch) Cancel

func (b *Batch) Cancel()

Cancel terminates batch

func (*Batch) Dispatch

func (b *Batch) Dispatch()

Dispatch executes the batch

func (Batch) GetCancelChan

func (b Batch) GetCancelChan() chan struct{}

GetCancelChan returns cancel channel

func (Batch) GetJobs

func (b Batch) GetJobs() []job.Request

GetJobs return jobs

func (Batch) GetStatus

func (b Batch) GetStatus() string

GetStatus returns status

func (Batch) Result

func (b Batch) Result() []job.Request

Result returns result

Jump to

Keyboard shortcuts

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