3 ms·
> but to get correct answers you have to shut the thing down at the end That's one of the things structured concurrency improves on. By defining a scope in a t
by Skinney 4y ago
> but to get correct answers you have to shut the thing down at the end
That's one of the things structured concurrency improves on. By defining a scope in a try-with-resources block, you make sure it's teared down at the end of whatever operation you perform.
- PaulHoule 4y agoI have to look at in more depth. In the systems I've built there are frequently a few queues and also some resources such as a MapDB or Jena instance, "shutting down" is a matter of flushing out the queues and closing the resources in dependency order. One of them used the Jena Rules Engine as a control plane, effectively a group of production rules that build all the queues, initialize the processing elements, resources, etc. I got told by the Jena people that this use case was not supported but it worked pretty well.