Skip to content

Happyholic1203/go-advconc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Go Concurrency Patterns

A simple (mock) RSS subscription fetcher for practicing go concurrency patterns:

  • Use for-select loop to write more responsive code
  • Use nil channels to disable select cases
  • Use chan chan error to avoid data race that usually happen in Close()

The directory practice contains the necessary boilerplate code for you to practice on your own.

To give it a run: cd improved; go run main.go

To practice on your own:

  1. cd practice
  2. vim main.go
  3. go run main.go: go to 2 if anything goes wrong

All credit goes to Sameer Ajmani and his great talk Advanced Go Concurrency Patterns:

About

Advanced Go Concurrency Patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages