Skip to content
Pipelines using goroutines
Branch: master
Clone or download
Latest commit 4e49541 Aug 31, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples gofmt Apr 25, 2018
.gitignore Pipelines implemented per https://blog.golang.org/pipelines Apr 25, 2018
.travis.yml Update .travis.yml Apr 29, 2018
LICENSE Create LICENSE Apr 25, 2018
README.md Add badges Aug 31, 2018
example_test.go Tests and examples Apr 29, 2018
pipeline.go Tests and examples Apr 29, 2018
pipeline_test.go Tests and examples Apr 29, 2018

README.md

GoDoc Build Status cover.run Go Report Card

pipeline

This package provides a simplistic implementation of Go pipelines as outlined in Go Concurrency Patterns: Pipelines and cancellation.

Docs

GoDoc available here.

Example Usage

import "github.com/hyfather/pipeline"

p := pipeline.New()
p.AddStageWithFanOut(myStage, 10)
p.AddStageWithFanOut(anotherStage, 100)
doneChan := p.Run(inChan)

<- doneChan

More comprehensive examples can be found here.

You can’t perform that action at this time.