AvalorAI / actify

An actor model built on Tokio that converts any implementation block into an actor model with the actify! macro
MIT License
2 stars 2 forks source link

add interior mutability #15

Open av-maurits opened 7 months ago

av-maurits commented 7 months ago

The requirements for a mutable reference to the cache in combination with returning a reference is problematic. Change this to a form of interior mutability.

av-maurits commented 2 months ago

It works but it is doubtful whether the new interface is more intuitive (see examples in the added branch)