module
Version:
v0.0.0-...-d674a5b
Opens a new window with list of versions in this module.
Published: Sep 17, 2021
License: MIT
Opens a new window with license information.
README
¶
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:
cd practice
vim main.go
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:
Directories
¶
Click to show internal directories.
Click to hide internal directories.