mlem
mlem copied to clipboard
Rewrite ItemCache using Actor
Requirements
- [x] There are no existing issues for this feature.
- [x] This is a request for a single feature (create multiple issues for multiple feature requests).
Description
ItemCache is currently implemented using an Atomic to achieve thread safety, but we are getting memory crashes on itemCache.put. Rewriting this class as an actor may resolve this, and either way is more canonical Swift.