TE
TechEcho
Home
24h Top
Newest
Best
Ask
Show
Jobs
English
GitHub
Twitter
Home
Job Queues in Go
4 points
by
i_have_to_speak
over 7 years ago
1 comment
ihsw2
over 7 years ago
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.