sKudryashov / go-concurrency-patterns

Go concurrency patterns from Rob Pike's 2012 Google I/O talk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang Concurrency Patterns

Common and useful golang concurrency patterns I implemented from Rob Pike's famous 2012 Google I/O talk.

Google I/O Talk

Common Patterns

  • Generator: function that runs goroutine and returns channel
  • Multiplexing (fan-in): function that takes multiple channels and pipes to one channel, so that the returned channel receives both outputs
  • Daisychaining: functions whose I/O are daisy-chained with channels together

About

Go concurrency patterns from Rob Pike's 2012 Google I/O talk


Languages

Language:Go 100.0%