This was updated to use an Arc<AtomicBool>, it should do this instead of just waiting for an arbitrary amount of time
This was updated to use an Arc, it should do this instead of just waiting for an arbitrary amount of time