79678294

Date: 2025-06-24 22:50:59
Score: 3.5
Natty:
Report link

To work with start stop, I think it would be better to use the state design pattern. And then process the states in it (https://refactoring.guru/design-patterns/state ) (https://refactoring.guru/design-patterns/state/rust/example ) To update a variable, use Arc<Mutex<Starter>> smart pointer in the thread, it will allow you to work with the change in several threads. (https://itsallaboutthebit.com/arc-mutex/)

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Maxsud Amirxanov