Closed al2o3cr closed 2 years ago
Modifying a Hash from multiple threads is potentially dangerous, even if threads don't access the same key.
To avoid this, make Mocktail::TopShelf a thread-local singleton.
Mocktail::TopShelf
The list of type replacements corresponds to global changes, so those are represented as a class variable and wrapped in a Mutex.
Looks fantastic, this is a huge improvemntāthank you!!
landed in 0.0.5
Modifying a Hash from multiple threads is potentially dangerous, even if threads don't access the same key.
To avoid this, make
Mocktail::TopShelf
a thread-local singleton.The list of type replacements corresponds to global changes, so those are represented as a class variable and wrapped in a Mutex.