Login
You're viewing the code4lib.social public feed.
  • Nov 27, 2026, 2:02 AM

    @ericseppanen A possible compromise solution is to wrap the mutex in a type that makes it transactional - gives read access via a & reference, and write access only by replacing the entire value when unlocking, so you get all-or-nothing semantics regardless of panics and other divergence. That's usable for small Copy payloads.

    💬 0🔄 0⭐ 0