The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Sleep A Thread For A Time In Rust

TODO: Pull subtitle into page object
Code
#!/usr/bin/env cargo +nightly -Zscript

//! ```cargo
//! [package]
//! edition = "2021"
//! [dependencies]
//! ```

use std::{thread, time};

fn main() {
    let sleep_time = time::Duration::from_millis(1000);
    println!("hello");
    thread::sleep(sleep_time);
    println!("sleep");
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Sleep A Thread For A Time In Rust

-- code
-- rust

#!/usr/bin/env cargo +nightly -Zscript

//! ```cargo
//! [package]
//! edition = "2021"
//! [dependencies]
//! ```

use std::{thread, time};

fn main() {
    let sleep_time = time::Duration::from_millis(1000);
    println!("hello");
    thread::sleep(sleep_time);
    println!("sleep");
}



-- categories
-- Rust 

-- metadata
-- date: 2023-09-29 20:30:09
-- id: 2w5swwgt
-- site: aws
-- type: snippet 
-- status: published