Closed ivoleitao closed 2 years ago
@ivoleitao Any updates on this?
Hello, still in the pipeline. I will try to add it on the next version
https://github.com/ivoleitao/stash/commit/cf6aac31f7da4923d4b6f5c507911a1cb57c82dd & https://github.com/ivoleitao/stash/commit/f700cfc050cf6caa56ff1917cea6b7b3804765a4
@ivoleitao could you please push 4.0.2?
I've found a concurrency problem, that I have to fix. It's an important one that was already present. In a nutshell the current solution had a race condition in the store creation / removal that appeared during the testing of getAll and putAll.
Unfortunately the solution is causing problems in sembast so I was unable to push it during the weekend.
I will try again next weekend.
The problem is now solved in the latest version and the new features published. Unfortunately I had to do a breaking change to fix this concurrency issue. But It shouldn't create that much of a problem. Here’s what I did
Future<Vault<T>>
and Future<Cache<T>>
Future<XXXStore>
where XXX is the specific storeThere was no other way to fix the issue without compromising the quality of the package