plx-pdg / plx

Practice programming exos in a delightful Learning eXperience
https://plx.rs
Other
3 stars 0 forks source link

Feature: Update Exo state during run #99

Open AndreCostaaa opened 2 months ago

AndreCostaaa commented 2 months ago

Currently, skills and exo are behind an Arc which means there's no mutating them There's 3 options here:

  1. Store them behind an Arc<Mutex> so we can mutate the data
  2. Don't store them inside an Arc which will involve more cloning when sending them to the UI
  3. Once we change the state, reparse from the file system