tmrts / go-patterns

Curated list of Go design patterns, recipes and idioms

Home Page:http://tmrts.com/go-patterns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use buffered channel instead of list.List in object pool example?

ammario opened this issue · comments

Instead of a list, using channels and select as demonstrated here makes for a much more beautiful demonstration.

The goal of this repository to present common patterns in a very simple manner and I agree with your assessment, thank you for your suggestion!

I tried to make the object pool as simple as possible here 6a717fe.

I'm not sure if its too simple or it gets the job done, so please let me know if you have any thoughts on it.