Re:Go Concurrency Patterns: Pipelines and cancellation
by Sajmani on Friday March 14, 2014 @07:09AM
(#7397976)
Yes, interrupt is better, and the article explains how to do that a few paragraphs later:
If you allow pipeline stages to interrupt their receive loop instead of draining the inbound channel, then _all_ send operations need to be governed by done. Otherwise the interrupted receive loop may block the upstream sender.
[ Parent
| on HN ]
There are no comments on this comment yet.