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");
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.