chord

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 Chord

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

Chord - jobs executed one after the other and the results passed to a callback

func NewChord

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

NewChord returns chord

func (*Chord) Cancel

func (c *Chord) Cancel()

Cancel terminates chain

func (*Chord) Dispatch

func (c *Chord) Dispatch()

Dispatch executes the chord

func (Chord) GetCallback

func (c Chord) GetCallback() job.Request

GetCallback returns callback exec

func (Chord) GetCancelChan

func (c Chord) GetCancelChan() chan struct{}

GetCancelChan returns cancel channel

func (Chord) GetJobs

func (c Chord) GetJobs() []job.Request

GetJobs returns jobs

func (Chord) GetStatus

func (c Chord) GetStatus() string

GetStatus returns status

func (Chord) Result

func (c Chord) Result() job.Request

Result returns result

Jump to

Keyboard shortcuts

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