StefanSchade / TaleForge

Text Adventure Logic Engine - A plattform to create immersive games without coding
0 stars 0 forks source link

Avoid lock poisioning #41

Open StefanSchade opened 5 months ago

StefanSchade commented 5 months ago

Be cautious with using .unwrap() on lock acquisition (e.g., self.locations.lock().unwrap()). While it’s generally safe in controlled scenarios (like tests or non-concurrent setups), in production, you might want to handle lock poisoning (where a thread panics while holding a lock) more gracefully.