will_exit

Usage

```rust use core::time::Duration; use std::thread;

fn main() { willexit::init(2000).unwrap(); thread::spawn(|| { thread::sleep(Duration::fromsecs(6)); willexit::exit(); }); loop { if willexit::willexit() { break; } thread::sleep(Duration::frommillis(100)); } println!("exit"); } ```