4 ms·
There is no "Go Concurrency Pattern" (singular). The article demonstrates some ways to use Go's concurrency primitives. Obviously there is a massive syntactic
by enneff 13y ago
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.
- crypto5 13y ago> 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");