
The done Channel Pattern func doWork(done <-chan interface{}) <-chan interface{} { terminated := make(chan interface{}) go func() { defer close(terminated) for { select { case s := <-strings: ...
Obsessed with crafting software.
Just a guy who loves to write code and watch anime.
Markdown supported · ⌘↵ to post
No responses yet.