FCO / Red

A WiP ORM for Raku
Artistic License 2.0
68 stars 27 forks source link

Lock accesses to the alias-cache of Model #536

Closed patrickbkr closed 2 years ago

patrickbkr commented 2 years ago

This function can be called concurrently, thus we need to protect the Hash from concurrent writes and reads.

FCO commented 2 years ago

Thank you! Is there any code we could test this change against?

patrickbkr commented 2 years ago

Good question. I tripped over this regularly in a medium sized app I work on, and the error message led me straight to that line of code. I'm unsure how it's called, or what needs to be done to exercise this code. (I don't even know what the alias is this method is about. :facepalm:)