brk_exit 0.0.83

An exit blocker built on top of ctrlc
Documentation
use std::{path::Path, thread::sleep, time::Duration};

use brk_exit::Exit;
use log::info;

fn main() {
    let exit = Exit::new();

    brk_logger::init(Some(Path::new(".log")));

    let lock = exit.lock();

    let mut i = 0;
    while i < 21 {
        info!("i = {i}");
        sleep(Duration::from_secs(1));
        i += 1;
    }

    drop(lock);

    let mut j = 0;
    while j < 10 {
        info!("j = {j}");
        sleep(Duration::from_secs(1));
        j += 1;
    }
}