semalim

package module
v0.0.0-...-9c88bf5 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: MIT Imports: 0 Imported by: 23

README

semalim

Build Status

A rationer for concurrent jobs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(jobs chan Job, workerCount uint64) chan Result

Types

type Job

type Job interface {
	Id() interface{}
	Do() (interface{}, error)
}

type Result

type Result interface {
	Err() error
	Id() interface{}
	Value() interface{}
}

Jump to

Keyboard shortcuts

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