Even better, perhaps some kind of concurrent map? The cached results would be the same across threads, and could safely be frozen the moment they were computed.
o
olonho
11/20/2018, 5:16 AM
There’s no concurrent map yet, however we consider implementing one. For now frozen
I was going to suggest Stately. It does such things.
kpgalligan
11/20/2018, 8:31 AM
To be clear, I think over time we'll adjust how we think about architecture, but while we're sorting it out, having some atomically mutable state in frozen objects can be usable.