Abruptly stop an application after a random amount of time.
Because NOBODY EXPECTS THE SPANISH INQUISITION
Add to your Cargo.toml
the following :
toml
[dependencies]
spanquist = "*"
Then wrap the main function of the application with the spanquist!
macro.
```rust
... spanquist! { fn main() { loop { println!("Hello, world!"); thread::sleep(time::Duration::from_millis(1000)); } }} ```
To see spanquist
in action, clone this repo and from the root of it execute
sh
cargo run
Then, wait up to an hour to see a beautiful application get brutally killed.
Any hilarity, chaos or straight out murder resulting from the use of this crate is your sole responsibility. Anyway, what are going to do? Bleed on me?