HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Job Queues in Go | Hacker News Reader
Job Queues in Go
opsdash.com
4 points
·
i_have_to_speak
·
·
1 comment
Open article
Save
View on HN
ihsw2
·
When receiving from a channel, it is possible to receive a second argument. This second argument is a `bool` and it resolves to `false` when the channel is closed. This removes the need for a `cancelChan` channel that your worker handles.
Reply on news.ycombinator.com