mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Rewrite ItemCache using Actor

Open EricBAndrews opened this issue 3 months ago • 0 comments

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.

EricBAndrews avatar Sep 27 '25 20:09 EricBAndrews