utls 0.5.5

A simple utilities library for stuff I actually use sometimes, with a large focus on convenience and lack of dependencies.
Documentation
use utls::watcher::Watcher;
use std::{io::stdin, sync::{atomic::AtomicBool, Arc, Mutex}};

fn main() {
    let sd = Arc::new(Mutex::new(AtomicBool::new(false)));
    let mut watcher = Watcher::new(9, 1, sd);

    loop {
        let mut input = String::new();
        stdin().read_line(&mut input).unwrap();
        
        if input.trim() == "add" {
            let current = watcher.get_value();
            watcher.set_value(current + 1);
            println!("Value is now: {}", watcher.get_value());
        }

        if watcher.has_changed() {
            println!("Value was changed!");
            break;
        }
    }
    println!("broke loop");
    drop(watcher)
}