News for hackers. Stuff that matters.
Re:Go Concurrency Patterns: Pipelines and cancellation by enneff on Thursday March 13, 2014 @07:50PM (#7396009)
There is no "Go Concurrency Pattern" (singular). The article demonstrates some ways to use Go's concurrency primitives.

Obviously there is a massive syntactic difference between your Java example and the equivalent Go code, but the other major difference that jumps out at me is that cancellation is baked into the Java library, whereas in Go the programmer determines how each of their pipeline stages should be shut down.

Re:Go Concurrency Patterns: Pipelines and cancellation by crypto5 on Friday March 14, 2014 @12:02AM (#7396908)
> Obviously there is a massive syntactic difference between your Java example and the equivalent Go code

With Java 8 and lambdas, syntax will be much cleaner, i.e. you can write something like: executor.execute(() -> "step1");