Concurrency is hard. Fortunately for us the java.util.concurrent
packages bring useful
abstractions, data types and execution mechanisms to get concurrency "a little bit better".
Golo doesn’t provide a equivalent to the synchronized
keyword of Java. This is on-purpose: when
facing concurrency, we advise you to just use whatever is in java.util.concurrent
.
That being said we provide a simple abstraction for concurrent executions in the form of workers. They pretty much resemble JavaScript web workers or isolates in Dart, albeit they do not really isolate the workers data space.