parallel

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: NCSA Imports: 7 Imported by: 0

README

Parallel Build Status

Parallel tools used by RAI and CarML

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NonCancelableTask

type NonCancelableTask struct {
}

func (NonCancelableTask) Cancelable

func (NonCancelableTask) Cancelable() bool

type NonCancelableTaskFunc

type NonCancelableTaskFunc func()

func (NonCancelableTaskFunc) Cancelable

func (NonCancelableTaskFunc) Cancelable() bool

func (NonCancelableTaskFunc) Run

func (f NonCancelableTaskFunc) Run()

type Parallel

type Parallel interface {
	Start() Parallel
	Wait()
	Stop()
	Add(Task)
	Run()
}

func New

func New(max int) Parallel

type ParallelImpl

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

func (*ParallelImpl) Add

func (p *ParallelImpl) Add(task Task)

func (*ParallelImpl) Run

func (p *ParallelImpl) Run()

func (*ParallelImpl) Start

func (p *ParallelImpl) Start() Parallel

func (*ParallelImpl) Stop

func (p *ParallelImpl) Stop()

func (*ParallelImpl) Wait

func (p *ParallelImpl) Wait()

type Task

type Task interface {
	Cancelable() bool
	Run()
}

Directories

Path Synopsis
Package tunny implements a simple pool for maintaining independant worker goroutines.
Package tunny implements a simple pool for maintaining independant worker goroutines.

Jump to

Keyboard shortcuts

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