Go Concurrency Patterns: Pipelines and cancellation - The Go Blog

Documents Packages The Project Help Blog The Go Programming Language The Go Gopher Go talks at FOSDEM 2014 golang.org Install Go A Tour of Go Go Documentation Go Mailing List Go on Google+ Go+ Community Go on Twitter Blog index The Go Blog Go Concurrency Patterns: Pipelines and cancellation 13 March 2014 Go's concurrency primitives make it easy to construct streaming data pipelines that make efficient use of I/O and multiple CPUs. This article presents examples of such pipelines, highlights subtleties that arise when operations fail, and introduces techniques for dealing with failures cleanly. There's no formal definition of a pipeline in Go; it's just one of many kinds of concurrent programs. Informally, a pipeline is a series of stages connected by channels, where each stage is a group of goroutines running the same ...

Linked on 2014-11-23 04:24:34 | Similar Links