3 ms·
Job Queues in Go
- deleted 9y ago[deleted]
- ihsw2 9y agoWhen 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.